ICEfaces
  1. ICEfaces
  2. ICE-1552

allow access to expanded property of accordionPanel (through ValueChangeEvent) and place a default toggle icon on the handle

    Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: 1.6DR#5
    • Fix Version/s: None
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      all

      Description

      1) the accordionPanel has the ability to drive the direction of an application if we have the ability to access it's expanded state. For example, we can disable certain things on the panel if a user is not logged in and the panel is open or could determine what is rendered elsewhere on the page...
      2) for HCI purposes, a default icon should be shown on the right hand side of the accordionPanel "handle" ....perhaps a toggleImageLocation property could also be available for other locations for this?

        Activity

        Hide
        Adnan Durrani added a comment -

        1) Clicking on accordionPanel fires an actionEvent, where expanded state can be evaluated. (e..g.)

        //pojo
        public void clicked(ActionEvent event)

        { UIComponent component = (UIComponent)event.getSource(); boolean state = Boolean.valueOf(component.getAttributes().get("expanded").toString()); }

        //using component
        public void clicked(ActionEvent event)

        { PanelAccordion component = (PanelAccordion)event.getSource(); boolean state = component.getExpanded().booleanValue(); }
        Show
        Adnan Durrani added a comment - 1) Clicking on accordionPanel fires an actionEvent, where expanded state can be evaluated. (e..g.) //pojo public void clicked(ActionEvent event) { UIComponent component = (UIComponent)event.getSource(); boolean state = Boolean.valueOf(component.getAttributes().get("expanded").toString()); } //using component public void clicked(ActionEvent event) { PanelAccordion component = (PanelAccordion)event.getSource(); boolean state = component.getExpanded().booleanValue(); }

          People

          • Assignee:
            Unassigned
            Reporter:
            Judy Guglielmin
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: