• Type: Task Task
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0-m1, 2.2
    • Component/s: Development
    • Security Level: Public (Public: Anyone can view)
    • Labels:
    • Similar issues:
      KULRICE-4813Unable to add Onclick Event to any HTML element
      KULRICE-8697Binding events on components within a row details group do not execute
      KULRICE-1982Add parms to widget's page_button to allow 'onClick' events to invoke javascript. Also add a readOnly parm.
      KULRICE-7987Problems with tooltip and mouse event
      KULRICE-4049documentControlstag not setting custom button onclick event
      KULRICE-8861Eventing Framework
      KULRICE-7008Add flag to component that enables storing of component in session
      KULRICE-13790Fill AFT Gap: Kitchen Sink: Event Examples
      KULRICE-11537Rice Sampleapp Krad Configuration Test View Page 1 Day Events - Sorting enable/disable testing not rendered
      KULRICE-12441Library - Controls - Disable on Key Event examples are ambiguous
    • Rice Module:
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required


      Currently the onclick event is not being supported on Group components, however the span element does support the event so the component should to. Likely just need to override supportOnClick to true in Group.

      Here is the reported thread:

      I think spans do support onclick
      ( Its listed under the event attributes.

      There are 3 fields within the group, and I can add the onclick event to any of them, but the UX calls for entire group to be the target for a popup onclick. Very similar to a table row of data to be clickable.

      Garett Gowens

      On 2/23/12 5:31 PM, "Jerry Neal" <> wrote:

      > Group components do not support the onclick event. With each type of
      >event, there is a supports* method that component types set to true or
      >false. Since the Group generates a span, and onclick is not supported
      >on a span it is not supported for the group. At least I think onclick
      >is not supported on span. If I am wrong we can enable it. Once we have
      >validation in place it should give you an error in these cases.
      > Is there a field within the group you can put the onclick event on?
      >----Original Message----
      >From: Garett Gowens
      >Sent: Thursday, February 23, 2012 4:22 PM
      >To: Eric Njogu; Garett Gowens
      >Subject: Re: [kuali] onClick event for a field group
      >Here it is:
      ><bean parent="Uif-HorizontalFieldGroup" p:labelField.render="false"

      > <property name="group.errorsField.render" value="false"/>
      > <property name="onDocumentReadyScript"

      > <property name="onClickScript"


      '}, e);"/>
      > <property name="items">
      > <list>
      > <bean parent="Uif-MessageField"


      > <property name="styleClasses">
      > <list merge="true">
      > <value>fl-text-bold</value>
      > </list>
      > </property>
      > </bean>
      > <bean parent="Uif-MessageField"


      > <property name="styleClasses">
      > <list merge="true">
      > <value>myplan-text-ellipsis</value>
      > </list>
      > </property>
      > </bean>
      > <bean parent="Uif-MessageField"


      > </list>
      > </property>
      > </bean>
      >Garett Gowens
      >On 2/23/12 11:21 AM, "Eric Njogu" <> wrote:
      >>Hi Garett, please post a code snippet of the bean config.
      >>On 2/23/12, Garett Gowens <> wrote:
      >>> I am trying to add an onClick event to a Uif-HorizontalFieldGroup
      >>> without success. I added an onClickScript property to the field
      >>> group, but script is not visible in the DOM and there are no
      >>> exceptions. Any suggestions on how I can accomplish this?
      >>> –
      >>> You received this message because you are subscribed to
      >>> Kuali "rice.usergroup.krad" group. To post to
      >>>this group, send email to To
      >>>unsubscribe from this group, login to and remove
      >>>this group from your profile.


        No work has yet been logged on this issue.


          • Assignee:
            Daniel Seibert (Inactive)
            Jerry Neal (Inactive)
          • Votes:
            0 Vote for this issue
            1 Start watching this issue


            • Created:

              Structure Helper Panel