Questions tagged [naming-containers]
24 questions
21
votes
1 answer
UIForm with prependId="false" breaks
I have a question about the idea behind the fact, that only UIForm got the attribute prependId. Why is the attribute not specified in the NamingContainer interface? You will now probably say that's because of backward compability but I would…

Christian Beikov
- 15,141
- 2
- 32
- 58
18
votes
5 answers
Get id of parent naming container in template for in render / update attribute
I have a template and in its Definition I use several forms and buttons.
The problem is the definition (define) xhtml file does not know the component hierarchy.
And for example I want to update the element "table2" in a different form in the same…

djmj
- 5,579
- 5
- 54
- 92
7
votes
2 answers
Jsf How to create a Naming Container
I have a problem with duplicated ids in my JSF app. I've read in this post that one of the possible solutions is to use Naming Container. Can you give me some example how to use the Naming Container to avoid duplicated ids problem? I use Facelets.

mgamer
- 13,580
- 25
- 87
- 145
6
votes
1 answer
List of components implementing NamingContainer
I found that there is something called NamingContainer in JSF. It is not clear that which component is a naming container. As far as I know, , and custom components are naming containers.
Where can I get a list of classes that…

Sergio
- 3,317
- 5
- 32
- 51
5
votes
3 answers
How do I implement a NamingContainer? All children get the same client ID
I try to write my own tree component. A tree node renders as a div containing child components of the tree component, for example:

Zeemee
- 10,486
- 14
- 51
- 81
5
votes
4 answers
ASP.NET DataSource Control "does not have a naming container" exception
I've been getting this exception in my code and wondered if anyone could help me out.
I have a Repeater Control bound to an ObjectDataSource, and the itemtemplate for the repeater contains a User Control (ASCX). This user control in turn contains…

Sam Schutte
- 6,666
- 6
- 44
- 54
4
votes
3 answers
Does the length of a variable's name affect the speed the program will run?
I have a short bit of code that needs to run for a long long time. I am wondering if the length of the variable's names that I use can alter the speed at which the program executes. Here is a very simple example written in Python.
Program A
x =…

XisUnknown
- 125
- 1
- 1
- 10
4
votes
2 answers
ASP.Net - Naming Containers and ClientIDMode="Static"
MSDN documentation states with regard to the ClientIdMode:
Static The ClientID value is set to the value of the ID property. If the control is a naming container, the control is used as
the top of the hierarchy of naming containers for any…

Shaun Rowan
- 9,269
- 4
- 28
- 52
3
votes
1 answer
How to access a composite component's sibling via clientId
I have a composite component that bundles some input fields. The component will be used multiple times on a page and contains a button to copy the values of another of these components. For this I would need to access one of those siblings via its…

Louise
- 1,451
- 1
- 18
- 40
2
votes
1 answer
How to create a custom control with INamingContainer?
I am trying the following:
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(TemplateContainer))]
public virtual ITemplate LayoutTemplate { get; set; }
protected void Page_Init(object sender, EventArgs e)
{
…

BrunoLM
- 97,872
- 84
- 296
- 452
1
vote
1 answer
How create a composite component that isn't a NamingContainer
I've create a composite component to substitute primefaces popup in my project. I've found something really bad in the generated html, an strange id appears and I can't find where this id is beggining, so I suspect this id is generated by composite…

brevleq
- 2,081
- 10
- 53
- 97
1
vote
1 answer
JSTL, composite, NamingContainer and prependId
I have written a composite component and want to use the reserved EL #{component.clientId} to make a JQuery bind. To use this retrieved clientId in a another place in the page (outside the component), I use JSTL to store it in a view scope variable.…

Doc Davluz
- 4,154
- 5
- 30
- 32
1
vote
0 answers
Repeater Item can't find NamingContainer
I recently switched a ComboBox in my repeater to a SuggestComboBox (found: here) because it is a contains search rather than a starts-with search. Previously, I was using NamingContainer of that ComboBox to find nearby elements. My new…

Jordan Wayne Crabb
- 319
- 6
- 17
1
vote
3 answers
Resolving viewstate/namespace conflicts
I have a listbox control. When the user clicks it, it tells a custom control to use a certain ID to use.
The custom control draws the same thing everytime(dynamically), just loads different content depending on this ID(it's loaded from a database…

Earlz
- 62,085
- 98
- 303
- 499
1
vote
1 answer
Naming container not getting "set" in extenders
I think I might know the cause, but not how to fix it without a lot of code rewriting(which I prefer to avoid).
I have
public class datecontrol : basecontrol
{
private ImageButton _ImageButton;
private TextBox _EditControl;
private…

Earlz
- 62,085
- 98
- 303
- 499