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

        Repository Revision Date User Message
        ICEsoft Public SVN Repository #27637 Fri Feb 03 11:37:44 MST 2012 art.zambrano ICE-7738 added jquery resource dependency
        Files Changed
        Commit graph MODIFY /icefaces3/trunk/icefaces/ace/component/src/org/icefaces/ace/component/fileentry/FileEntryMeta.java
        Repository Revision Date User Message
        ICEsoft Public SVN Repository #27644 Fri Feb 03 12:19:09 MST 2012 ken.fyten ICE-7738 added jquery resource dependency
        Files Changed
        Commit graph MODIFY /icefaces3/tags/icefaces-3.0.0/icefaces/ace/component/src/org/icefaces/ace/component/fileentry/FileEntryMeta.java
        Arturo Zambrano created issue -
        Arturo Zambrano made changes -
        Field Original Value New Value
        Assignee Arturo Zambrano [ artzambrano ]
        Hide
        Arturo Zambrano added a comment -

        Fixed at revision 27637.

        Show
        Arturo Zambrano added a comment - Fixed at revision 27637.
        Arturo Zambrano made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Ken Fyten made changes -
        ICEsoft Forum Reference http://www.icefaces.org/JForum/posts/list/20466.page#72141
        Salesforce Case []
        Ken Fyten made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        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: