Details

    • Type: Task
    • Status: Closed
    • Priority: 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:
      None
    • Rice Module:
      KRAD
    • KAI Review Status:
      Not Required
    • KTI Review Status:
      Not Required

      Description

      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
      (http://www.w3schools.com/tags/tag_span.asp). 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
      garettg@uw.edu
      206.221.7890

      On 2/23/12 5:31 PM, "Jerry Neal" <jkneal@indiana.edu> wrote:

      >Garett,
      >
      > 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?
      >
      >Jerry
      >
      >----Original Message----
      >From: Garett Gowens garettg@uw.edu
      >Sent: Thursday, February 23, 2012 4:22 PM
      >To: Eric Njogu; Garett Gowens
      >Cc: rice.usergroup.krad@kuali.org
      >Subject: Re: [kuali] onClick event for a field group
      >
      >Here it is:
      >
      ><bean parent="Uif-HorizontalFieldGroup" p:labelField.render="false"
      >p:id="@

      {#line.id}">
      > <property name="group.errorsField.render" value="false"/>
      > <property name="onDocumentReadyScript"
      >value="truncateField('@{#line.id}

      ');"/>
      > <property name="onClickScript"
      >value="openPopUp('@

      {#line.id}','course_details_popup','start','inquiry'
      >,{v
      >i
      >ewId:'SavedCoursesPopup-InquiryView',planItemId:'@{#line.id}

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

      {#line.courseDetails.code}

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

      {#line.courseDetails.courseTitle}

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

      {#line.courseDetails.credit}

      "/>
      > </list>
      > </property>
      > </bean>
      >
      >
      >
      >--
      >
      >
      >Garett Gowens
      >garettg@uw.edu
      >206.221.7890
      >
      >
      >
      >
      >On 2/23/12 11:21 AM, "Eric Njogu" <enjogu@strathmore.edu> wrote:
      >
      >>Hi Garett, please post a code snippet of the bean config.
      >>
      >>On 2/23/12, Garett Gowens <garettg@kuali.org> 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
      >>>http://kuali.org/kis Kuali "rice.usergroup.krad" group. To post to
      >>>this group, send email to rice.usergroup.krad@kuali.org To
      >>>unsubscribe from this group, login to http://kuali.org/kis and remove
      >>>this group from your profile.
      >>>
      >>
      >>
      >>--
      >>Regards,
      >>Eric.

        Attachments

          Activity

          No work has yet been logged on this issue.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: