> HI !
> 
> I am trying to make a custom component, a sortable column 
> which is a column
> with an output text and 2 command buttons at its header.
> 
> I extends the UIcolumn component and put a htmlPanelGrid in it header.
> HtmlPanelGrid contains an output text and 2 command buttons.
> 
> I am trying to a assign id to these component using View as
> 
> FacesContext.getCurrentInstance().getViewRoot().createUniqueId();
> 
> Now it displays everything fine for the first time. But when 
> I click any of
> these buttons, cells of the column disappears and I left with 
> empty column.
> 
> Does any one have any idea why this is happening.

Not really an idea what's happening... but maybe an idea how to find it
out...
Have you set the logging in MyFaces to the highest level?
MyFaces then logs the component-tree (with usefull info) to the log and
in
my components that tree-logging in restore- and render-phase have helped
my
a lot.

You can activate the logging by adding the correct log4j options...
in my xml-log4j-config I have these entries:
        <category name="javax.faces">
                <priority value="all"/>
        </category>
        <category name="org.apache.myfaces">
                <priority value="all"/>
        </category>

hth
Alexander

> 
> With regards
> Amit
> ps: When I don't assign ids everything works fine except that I got a
> warning saying automatic id is assigned to these components.
> 
> 

Reply via email to