Re: _extend48 - ring any bells?
Here's the code for the CompanyPage (the first panel) public class CompanyPage extends DashboardMenuPage { public CompanyPage() { super(CompanySelected.dashboard); if (ContextUtil.get().getUser() instanceof ExternalUser) { TeamProject[] projs = ContextUtil.get().getUser().getProjects().toArray(new TeamProject[0]); if (projs.length == 0) { User admin = ServiceLocator.getUserService().getFirstAdmin(ContextUtil.get().getCompany()); String body = getString(noworkspace.message.body); body = body.replace({0}, admin.getEmail()); setResponsePage(new MessagePage(getString(noworkspace.message.title), body)); } else { setResponsePage(new ProjectPage(new HibernateEntityModelTeamProject(projs[0]))); } return; } // perhaps they have configured their look and feel not to have the dashboard // if not redirect to the All workspace page if (!ContextUtil.get().getCompany().getGeneralSettings().isShowMyDashboard()) { throw new RestartResponseException(new WorkspacesPage()); } add(new CompanyDashboardPanel(mainPanel)); } public CompanyPage(PageParameters params) { super(CompanySelected.dashboard); if (params.get(PostingLinkBuildingStrategy.POSTINGID) != null) { IModelPosting postingModel = new HibernateEntityModelPosting(Posting.class, params.getLong(PostingLinkBuildingStrategy.POSTINGID)); add(new PostingDetailPanel(mainPanel, postingModel)); } else { add(new CompanyDashboardPanel(mainPanel)); } } } The second depends on the context, so thats a lot fo code to copy and paste . Something that looks wrong here is calling setResponsePage directly in the constructor rather than using RestartResponseException. However calling setResponsePage does seem to work fine - could it cause this issue? What could I look for here? many thanks On Wed, Oct 20, 2010 at 4:58 PM, Jeremy Thomerson jer...@wickettraining.com wrote: On Wed, Oct 20, 2010 at 5:12 AM, Wayne W waynemailingli...@gmail.comwrote: Hi Jeremy, That is the id for the wicket extend tag in your markup This might be a stupid question - but can I tell where in the page this might be causing the problem from the _extend38? Is that the 38th extend for example? Any hints on how I can track this down? Show us the java code for the two panels that you sent HTML for. -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org* - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: _extend48 - ring any bells?
Hi Jeremy, That is the id for the wicket extend tag in your markup This might be a stupid question - but can I tell where in the page this might be causing the problem from the _extend38? Is that the 38th extend for example? Any hints on how I can track this down? thanks On Tue, Oct 19, 2010 at 7:47 PM, Jeremy Thomerson jer...@wickettraining.com wrote: That is the id for the wicket extend tag in your markup Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors On Oct 19, 2010 12:46 PM, Wayne W waynemailingli...@gmail.com wrote: Hi, I've got a problem in production whereby our application home page throws a :Unable to find component with id 'mainPanel' in [MarkupContainer [Component id = _extend48]] This only happens once or twice a week. We don't have any components named '_extend48' or similar anywhere in the code. Whats odd is that this page renders 99% of the time fine, but for the life of me I cannot understand how this can happen. Is the component id given a red herring? Any ideas on how I can find out what causes this? thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: _extend48 - ring any bells?
On Wed, Oct 20, 2010 at 5:12 AM, Wayne W waynemailingli...@gmail.comwrote: Hi Jeremy, That is the id for the wicket extend tag in your markup This might be a stupid question - but can I tell where in the page this might be causing the problem from the _extend38? Is that the 38th extend for example? Any hints on how I can track this down? Show us the java code for the two panels that you sent HTML for. -- Jeremy Thomerson http://wickettraining.com *Need a CMS for Wicket? Use Brix! http://brixcms.org*
Re: _extend48 - ring any bells?
That is the id for the wicket extend tag in your markup Jeremy Thomerson http://wickettraining.com -- sent from my smart phone, so please excuse spelling, formatting, or compiler errors On Oct 19, 2010 12:46 PM, Wayne W waynemailingli...@gmail.com wrote: Hi, I've got a problem in production whereby our application home page throws a :Unable to find component with id 'mainPanel' in [MarkupContainer [Component id = _extend48]] This only happens once or twice a week. We don't have any components named '_extend48' or similar anywhere in the code. Whats odd is that this page renders 99% of the time fine, but for the life of me I cannot understand how this can happen. Is the component id given a red herring? Any ideas on how I can find out what causes this? thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: _extend48 - ring any bells?
Would you show the html of this mainpanel and also its super panel? ** Martin 2010/10/19 Wayne W waynemailingli...@gmail.com: Hi, I've got a problem in production whereby our application home page throws a :Unable to find component with id 'mainPanel' in [MarkupContainer [Component id = _extend48]] This only happens once or twice a week. We don't have any components named '_extend48' or similar anywhere in the code. Whats odd is that this page renders 99% of the time fine, but for the life of me I cannot understand how this can happen. Is the component id given a red herring? Any ideas on how I can find out what causes this? thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: _extend48 - ring any bells?
super panel: 1 html 2 body 3 wicket:extend 4 div wicket:id=mainPanel/ 5 /wicket:extend 6 /body 7 /html mainpanel: the main panel can be one of 3 different panels depending on the context of the request. However I'm 99.5% sure (looking at the logs) its this panel: 1 html 2 3 wicket:head 4 /wicket:head 5 6 body 7 wicket:panel 8 9 10 11 div class=contentwrapper 12 div class=contentcolumn 13 div class=innertube 14 !--wicket:enclosure child=bday 15 div style=border:1px solid green; padding:5px; child=bday 16 Today is span wicket:id=bday fred /span birthday! wicket:container wicket:id=bdayImgsimg src=# wicket:id=bdayImage//wicket:container 17 /div 18 /wicket:enclosure -- 19 20 wicket:enclosurediv wicket:id=feedbackPanel//wicket:enclosure 21 22 span wicket:id=announcementsArea 23 wicket:enclosure child=announcements 24 div 25 h2 class=userDefinedBgspan class=right_endspan class=startwicket:message key=company.annoucmentsCompany Announcements/wicket:message/span/span/h2 26 /div 27 28 div class=contentBlock 29 30 31 div class=feed wicket:id=announcements/div 32 div class=spacer/div 33 /div 34 div class=contentBlock_bottomspan class=right_endspan/span/span/div 35 36 /wicket:enclosure 37 /span 38 39 div wicket:id=weekView/div 40 41 div class=companyActivity 42 43 h2 class=userDefinedBg filter 44 span class=startwicket:message key=company.feedLatest Activity/wicket:message/span 45 a class=rss wicket:id=rssLink href=#RSS/a 46 div class=filter wicket:id=filterContainer 47 a href=# wicket:id=filterEverythingwicket:message key=company.filterEverythingEverything/wicket:message/a 48 a href=# wicket:id=filterMyWorkspaceswicket:message key=company.filterMyWorkspacesMy workspaces/wicket:message/a 49 span class=loading spinner wicket:id=spinnerContainer style=display:nonenbsp;img src=images/icons/throbber.gif //span 50 /div 51 /h2 52 div class=contentBlock 53 div id=latestFeeds wicket:id=latestFeed/div 54 /div 55 div class=contentBlock_bottomspan class=right_endspan/span/span/div 56 /div 57 58 /div 59 /div 60 /div 61 div class=rightcolumn 62 div class=innertube 63 64 h2 class=userDefinedBgspan class=right_endspan class=startwicket:message key=toolsTool Box/wicket:message/span/span/h2 65 div class=contentBlock 66 ul class=toolbox userDefinedColor 67 li class=userDefinedBg 68 a class=add_link announcement href=# wicket:id=newArticleLinkwicket:message key=company.newAnnoucementPost Company News/wicket:message/a 69 /li 70 li class=userDefinedBg 71 a class=add_link poll href=# wicket:id=newPollLinkwicket:message key=company.newPollPost Company Poll/wicket:message/a 72