ICEfaces
  1. ICEfaces
  2. ICE-6141

Use Resource API to calculate ICEpush listen URL

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-Beta1
    • Fix Version/s: 2.0-Beta2, 2.0.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      ICEfaces

      Description

      The current template mechanism for calculating the "listen.icepush" URL does not handle all cases well so it has been re-implemented to use the Resource API more directly.

        Activity

        Hide
        Ted Goddard added a comment -

        Please resolve this issue if the Portlet tests are successful.

        Show
        Ted Goddard added a comment - Please resolve this issue if the Portlet tests are successful.
        Hide
        Deryk Sinotte added a comment -

        Checked in an adjustment to the BridgeSetup.GenericScriptWriter where writing stuff to the writer is sensitive to the order. The startElement must be called before writeAttribute. In our case:

        public void encode(ResponseWriter writer, FacesContext context) throws IOException

        { String clientID = getClientId(context); //Exchange the position of the next 2 lines writer.writeAttribute("id", clientID, null); writer.startElement("script", this); //define potential script entries writer.writeAttribute("src", script, null); writer.writeAttribute("type", "text/javascript" , null); writer.endElement("script"); }
        Show
        Deryk Sinotte added a comment - Checked in an adjustment to the BridgeSetup.GenericScriptWriter where writing stuff to the writer is sensitive to the order. The startElement must be called before writeAttribute. In our case: public void encode(ResponseWriter writer, FacesContext context) throws IOException { String clientID = getClientId(context); //Exchange the position of the next 2 lines writer.writeAttribute("id", clientID, null); writer.startElement("script", this); //define potential script entries writer.writeAttribute("src", script, null); writer.writeAttribute("type", "text/javascript" , null); writer.endElement("script"); }

          People

          • Assignee:
            Deryk Sinotte
            Reporter:
            Ted Goddard
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: