Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It works if you provide names for your params --- Visualforce won't process params in this context unless they're named.</p> <pre><code>&lt;apex:actionFunction name="renderGallery" rerender="gallery" oncomplete="renderScripts();"&gt; &lt;apex:param name="noImg" value="{!URLFOR($Resource.NoImage)}" assignTo="{!noImage}"/&gt; &lt;apex:param name="noImgUrl" value="{!URLFOR($Resource.NoImageThumb)}" assignTo="{!noImageThumb}"/&gt; &lt;/apex:actionFunction&gt; </code></pre> <p>If this doesn't work for you right away, please post the rest of your Visualforce code so that we can see where "gallery" and "scriptPanel" are in relation to your apex form tag --- getting rerender to work correctly is notoriously tricky, and entirely dependent on the hierarchical position of the DOM elements getting rerendered. To guarantee that gallery and scriptPanel successfully rerender, put them in separate outputPanels outside the apex form tag, like this:</p> <pre><code>&lt;apex:outputPanel id="scriptPanel"&gt; Selected Family: {!SelectedFamily}&lt;br/&gt; &lt;/apex:outputPanel&gt;&lt;br/&gt;&lt;br/&gt; &lt;apex:outputPanel id="gallery"&gt; No Image: {!noImage}&lt;br/&gt; No Image Thumb: {!noImageThumb}&lt;br/&gt; &lt;/apex:outputPanel&gt;&lt;br/&gt;&lt;br/&gt; </code></pre> <p>@MatthewKeefe, there's absolutely no reason why {!URLFOR()} can't be used as an extension variable --- it compiles to text (e.g. '/resource/123718923'), so Jim's solution here is actually pretty interesting, as it saves him from having to do a SOQL query on the StaticResource object in his controller.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload