Uploaded image for project: 'MyFaces Tomahawk'
  1. MyFaces Tomahawk
  2. TOMAHAWK-1224

Conversion issue - Schedule_editsettings.jsp not working with Schedule.Mode setting

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Examples
    • None
    • Tomcat, Windows XP, Firefox and IE7

    Description

      The actual mode selected is returning a "Value is not a valid option." due to a conversion issue.

      This can be fix very easily with 2 steps:

      STEP 1 - Adding this code to org.apache.myfaces.examples.schedule.ScheduleSettings.java :

      private String mode;
      public String getMode()

      { return mode;}

      public void setMode(String value) {
      if (value != null)

      { int mode = Integer.parseInt(value); model.setMode(mode); this.mode = value; }

      }

      STEP 2 - Changing the value attribute of the mode from "scheduleSettings2.model.mode" to "scheduleSettings2.mode" :

      <h:selectOneRadio id="mode" value="#

      {scheduleSettings2.mode}

      ">
      <f:selectItem itemValue="0" itemLabel="day"/>
      <f:selectItem itemValue="1" itemLabel="workweek"/>
      <f:selectItem itemValue="2" itemLabel="week" />
      <f:selectItem itemValue="3" itemLabel="month" />
      </h:selectOneRadio>

      Hope this helps. thk

      Attachments

        Activity

          People

            Unassigned Unassigned
            apokai Frederic Filiatrault
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 1m
                1m
                Logged:
                Time Spent - Not Specified
                Not Specified