ICEfaces
  1. ICEfaces
  2. ICE-7738

ace:fileEntry doesn't work unless certain ACE components are on the same page

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.RC2
    • Fix Version/s: 3.0
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Any

      Description

      It seems like ace:fileEntry has a resource dependency issue, it only works if another ace: component, like ace:dialog, is on the page too.

        Activity

        Hide
        Arturo Zambrano added a comment -

        Fixed at revision 27637.

        Show
        Arturo Zambrano added a comment - Fixed at revision 27637.
        Hide
        Krashan Brahmanjara added a comment -

        Probably not fixed. Showcase use ace:panel and I see the same bad behaviour on external app with Icefaces 3 from trunk, revision 33991

        Show
        Krashan Brahmanjara added a comment - Probably not fixed. Showcase use ace:panel and I see the same bad behaviour on external app with Icefaces 3 from trunk, revision 33991
        Hide
        Krashan Brahmanjara added a comment -

        I got this code i application with compat library

        <icecore:config mandatoryResource="fileEntry" />
        <span>
        <ace:fileEntry size="60" id="uplDokInputFN" value="#

        {uploadDok.fileName}

        " width="520" height="32"
        failOnEmptyFile="true" styleClass="inputFile" absolutePath="./upload/"
        maxFileCount="1" maxFileCountMessage="Limited to one file uploaded concurrantly."
        useOriginalFilename="true" useSessionSubdir="true"
        fileEntryListener="#

        {uploadDok.fileCtrl.uploadFile}

        " >
        </ace:fileEntry>
        <h:commandButton id="submit" type="submit" value="Upload"/>
        </span>

        And on first access file is not loaded and console shows "TypeError: ice.ace is undefined"

        Show
        Krashan Brahmanjara added a comment - I got this code i application with compat library <icecore:config mandatoryResource="fileEntry" /> <span> <ace:fileEntry size="60" id="uplDokInputFN" value="# {uploadDok.fileName} " width="520" height="32" failOnEmptyFile="true" styleClass="inputFile" absolutePath="./upload/" maxFileCount="1" maxFileCountMessage="Limited to one file uploaded concurrantly." useOriginalFilename="true" useSessionSubdir="true" fileEntryListener="# {uploadDok.fileCtrl.uploadFile} " > </ace:fileEntry> <h:commandButton id="submit" type="submit" value="Upload"/> </span> And on first access file is not loaded and console shows "TypeError: ice.ace is undefined"
        Hide
        Krashan Brahmanjara added a comment -

        So <icecore:config mandatoryResource="fileEntry" /> doesn't work on first access (code is on ui:include and view optionally rendered).

        Global workaround is:
        <context-param>
        <param-name>org.icefaces.mandatoryResourceConfiguration</param-name>
        <param-value>fileEntry</param-value>
        </context-param>

        Show
        Krashan Brahmanjara added a comment - So <icecore:config mandatoryResource="fileEntry" /> doesn't work on first access (code is on ui:include and view optionally rendered). Global workaround is: <context-param> <param-name>org.icefaces.mandatoryResourceConfiguration</param-name> <param-value>fileEntry</param-value> </context-param>
        Hide
        Krashan Brahmanjara added a comment -

        BTW.
        Missing resource dependecy is FileEntrybase.java. Section @ICEResourceDependencies({
        need
        @ICEResourceDependency(name="util/combined.css",library="",target="",browser=BrowserType.ALL,browserOverride={}),
        to correct display progress bar

        Show
        Krashan Brahmanjara added a comment - BTW. Missing resource dependecy is FileEntrybase.java. Section @ICEResourceDependencies({ need @ICEResourceDependency(name="util/combined.css",library="",target="",browser=BrowserType.ALL,browserOverride={}), to correct display progress bar

          People

          • Assignee:
            Arturo Zambrano
            Reporter:
            Arturo Zambrano
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: