2 Replies Latest reply on Mar 2, 2004 7:06 PM by aalmero

    poll module doesn't display the title

    aalmero

      i deployed the poll module from the cvs snapshot, but title doesnt display at all. i check with the logs and found out this warning


      WARN [Generated38] field TITLE is null


      any clue for this? or is it a bug?

        • 1. Re: poll module doesn't display the title
          jae77

          if you set a title for the poll when you created it, then it is potentially a bug. you can file a bug report for it on sourceforge, and/or attempt to fix it yourself and submit a patch.

          • 2. Re: poll module doesn't display the title
            aalmero

            how would i possibly submit a fixed for it?
            anyway heres the fixed i did by just
            adding the code below on PollBlock.java
            try {
            //get poll title from poll module
            String pollTitle = (String) server.invoke(
            PollsModule.OBJECT_NAME,
            "getPollTitle",
            new Object[]{pollId},
            new String[]{Integer.TYPE.getName()});
            output.text("" + pollTitle + "");
            }
            catch (Exception ex)
            {
            output.text("Cannot retrieve poll title.");
            output.printPage(page);
            log.error("Cannot retrieve poll title.", ex);
            return;
            }