0 Replies Latest reply on Sep 14, 2011 7:19 AM by kwutzke

    Editable rich:collapsiblePanel?

    kwutzke

      Hello,

       

      I have a requirement to make a collapsible panel editable, that is the header text. I managed to include a custom component into the header (see http://community.jboss.org/thread/163038):

       

       

      {code}

      <rich:collapsiblePanel switchType="client">

        <f:facet name="headerExpanded">

          <rich:inplaceInput value="Einleitung" />

        </f:facet>

        <f:facet name="headerCollapsed">

          <h:inputText value="Einleitung" />

        </f:facet>

      <rich:collapsiblePanel>

      {code}

      The problem with this is that each expanded/collapsed change also exchanges the component instance (of course).

       

      This makes the text inputs (whichever) unfocussable, as the collapsible header will react to the mouse click even when hovering over the text input.

       

      Is there any chance to focus these collapsible header text components? Maybe the idea to put text inputs into a collapsible header isn't the desired way, what might be alternative solutions?

       

      What about supporting the "header" facet, which would stand for both expanded and collapsed states, see http://community.jboss.org/thread/163038?

       

      Karsten