You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Wayne W <wa...@gmail.com> on 2010/10/19 19:37:36 UTC
_extend48 - ring any bells?
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: _extend48 - ring any bells?
Posted by Wayne W <wa...@gmail.com>.
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="bdayImgs"><img src="#"
wicket:id="bdayImage"/></wicket:container>
17 </div>
18 </wicket:enclosure> -->
19
20
<wicket:enclosure><div wicket:id="feedbackPanel"/></wicket:enclosure>
21
22 <span
wicket:id="announcementsArea">
23
<wicket:enclosure child="announcements">
24 <div>
25 <h2
class="userDefinedBg"><span class="right_end"><span
class="start"><wicket:message key="company.annoucments">Company
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_bottom"><span
class="right_end"><span></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="start"><wicket:message key="company.feed">Latest
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="filterEverything"><wicket:message
key="company.filterEverything">Everything</wicket:message></a>
48
<a href="#" wicket:id="filterMyWorkspaces"><wicket:message
key="company.filterMyWorkspaces">My workspaces</wicket:message></a>
49
<span class="loading spinner" wicket:id="spinnerContainer"
style="display:none"> <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_bottom"><span
class="right_end"><span></span></span></div>
56 </div>
57
58 </div>
59 </div>
60 </div>
61 <div class="rightcolumn">
62 <div class="innertube">
63
64 <h2
class="userDefinedBg"><span class="right_end"><span
class="start"><wicket:message key="tools">Tool
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="newArticleLink"><wicket:message
key="company.newAnnoucement">Post Company News</wicket:message></a>
69 </li>
70 <li
class="userDefinedBg">
71
<a class="add_link poll" href="#"
wicket:id="newPollLink"><wicket:message key="company.newPoll">Post
Company Poll</wicket:message></a>
72 </li>
73 <li
class="userDefinedBg">
74
<a class="add_link announcements"
wicket:id="switchAnnoncementsLink"><span
wicket:id="switchLabel">siwtch new/old announcements</span></a>
75 </li>
76
<wicket:enclosure>
77 <li
class="userDefinedBg">
78 <a
class="add_link newcube" wicket:id="addCubes"><wicket:message
key="company.newCube">Create a new Cube</wicket:message></a>
79 </li>
80
</wicket:enclosure>
81 <li
class="expandable userDefinedBg">
82
<div class="subscribe" wicket:id="subscribe"></div>
83 </li>
84
85 </ul>
86 <div
class="spacer"></div>
87 </div>
88 <div
class="contentBlock_bottom"><span
class="right_end"><span></span></span></div>
89
90
91
92
93 <h2
class="userDefinedBg"><span class="right_end"><span
class="start"><wicket:message key="company.hotstuff">Hot
Stuff</wicket:message></span></span></h2>
94 <div class="contentBox_body">
95 <div
class="contentBlock">
96 <div
wicket:id="hotStuff"></div>
97 <div
class="spacer"></div>
98 </div>
99 <div
class="contentBlock_bottom"><span
class="right_end"><span></span></span></div>
100 </div>
101
102
103
104
105
106 <h2 class="userDefinedBg
filter" wicket:id="workspaceFilterContainer">
107
<span><wicket:container wicket:id="cubesTitle">All
Cubes</wicket:container></span>
108 <div class="filter" >
109 <a href=""
wicket:id="filterCubes" ><wicket:container wicket:id="filterText">Me
as member</wicket:container></a>
110 <span
class="loading spinner" wicket:id="workspaceSpinnerContainer"
style="display:none"> <img src="images/icons/throbber.gif"
/></span>
111 </div>
112 </h2>
113 <div
class="contentBox_body">
114 <div
class="contentBlock" wicket:id="allProjectsContainer">
115 <div
wicket:id="allProjects"></div>
116 <div
class="spacer"></div>
117 </div>
118 <div
class="contentBlock_bottom"><span
class="right_end"><span></span></span></div>
119 </div>
120
121 </div>
122 </div>
123 </wicket:panel>
124 </body>
125 </html>
On Tue, Oct 19, 2010 at 7:50 PM, Martin Makundi
<ma...@koodaripalvelut.com> wrote:
> Would you show the html of this mainpanel and also its super panel?
>
> **
> Martin
>
> 2010/10/19 Wayne W <wa...@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-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: _extend48 - ring any bells?
Posted by Martin Makundi <ma...@koodaripalvelut.com>.
Would you show the html of this mainpanel and also its super panel?
**
Martin
2010/10/19 Wayne W <wa...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: _extend48 - ring any bells?
Posted by Wayne W <wa...@gmail.com>.
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
HibernateEntityModel<TeamProject>(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) {
IModel<Posting> postingModel = new
HibernateEntityModel<Posting>(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
<je...@wickettraining.com> wrote:
> On Wed, Oct 20, 2010 at 5:12 AM, Wayne W <wa...@gmail.com>wrote:
>
>> 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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: _extend48 - ring any bells?
Posted by Jeremy Thomerson <je...@wickettraining.com>.
On Wed, Oct 20, 2010 at 5:12 AM, Wayne W <wa...@gmail.com>wrote:
> 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?
Posted by Wayne W <wa...@gmail.com>.
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
<je...@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" <wa...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: _extend48 - ring any bells?
Posted by Jeremy Thomerson <je...@wickettraining.com>.
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" <wa...@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org