Home > visualforce > Base URL in VF Component

Base URL in VF Component

June 13Hits:6
Advertisement

I am creating a vf component and was stuck to add a base url to href.

 <apex:component controller="OpportunityReminder_cls" access="global" rendered="{!NOT(Isnull(FLstWrapperString))}"> <apex:attribute name="ownerId" type="Id" description="Id of the opportunity" assignTo="{!UserId}"/> <table class="textContainer"><tr><td class="textContainer"> <!--{!$Label.OppTemp1}--> </td></tr></table>  <table>     <tr>         <th>Action</th>         <th>Opportunity Name</th>                                 <!-- <th class="header">Amount</th> -->          <th class="header">Stage</th>          <!-- <th class="header">Stage Duration</th> -->         <th class="header">Close Date</th>         <th class="header">Age</th>     </tr>      <apex:repeat value="{!FLstWrapperString}" var="o"  >                    <tr>         <td class="center"><apex:outputLink value="{!URLFOR($Action.Opportunity.Edit)}">Edit</apex:outputLink></td>         <td><a href="https://cs14.salesforce.com/{!o.id}">{!o.Name}</a></td>         <!-- <td class="center"><apex:outputText rendered="{!NOT(ISBLANK(o.Amount))}" value="{!o.CurrencyIsoCode} "/>{!o.Amount}</td> -->         <td class="center">{!o.StageName}</td>         <!-- <td>{!o.Stage_C_Duration__c}</td> -->         <td class="center"><apex:outputText value="{0,date,dd.MM.yyyy}"><apex:Param value="{!o.CloseDate }" /></apex:outputText></td>                     <td class="center">{!o.Age}</td>     </tr>     </apex:repeat>  

`

This results an error:

Error occurred trying to load the template for preview: List index out of bounds: 0. Please try editing your markup to correct the problem.

Related Articles

  • Base URL in VF ComponentJune 13

    I am creating a vf component and was stuck to add a base url to href. <apex:component controller="OpportunityReminder_cls" access="global" rendered="{!NOT(Isnull(FLstWrapperString))}"> <apex:attribute name="owne

  • Set the base url of any menu item in JoomlaAugust 31

    I'm not sure if this belongs here, superuser or stackoverflow I'm using virtual domains, which means that www.company.com has one template www.community.com has another template user accounts are shared the site is also in 2 languages now there is a

  • In Selenium IDE, how to get the value of the base urlFebruary 4

    Is it possible to retrieve the value of the base url from inside a Selenium script (a plain HTML-saved script from Selenium IDE)? What I'm trying to do is verify the current url using assertLocation. But assertLocation returns the absolute url. I wou

  • Set a views path to base URL

    Set a views path to base URLDecember 13

    I am using view. Every view needs path and i want to set that path to my base url. For example i want to make a view which will take a Car as a argument and show result at www.example.com/Car Any help will be appreciated. --------------Solutions-----

  • Nginx pass subdirectory as base url to KohanaDecember 27

    Having set up multiple Kohana applications on Nginx, I need to adjust the "base url" parameter for each application. Before when I was using Apache with .htaccess this was easy (RewriteBase) but in Nginx I have found the following solution: loca

  • How to remove custom post type name from base url?February 26

    How can I remove custom post type slug from my base url ? for eg : mywebsiteurl.com/custom-post-slug/postname I would like to make it mywebsiteurl.com/postname instead . --------------Solutions------------- I'm not sure why you would want to do this

  • Trac base URL not rewritten when deployed via htaccessFebruary 28

    How do I convince trac to omit trac.cgi from its internal links? I have a trac instance deployed in a user directory using htaccess and mod_rewrite, and would like the URLs to be of the form http://example.com/foo/ticket/1. Editing the server config

  • Get the site base url in template.phpFebruary 28

    How do i get the base url in template.php? None of the below works. global $base_url; global $base_path; global $base_root; --------------Solutions------------- You can use the base_path() function which should always work. To be honest though it jus

  • nginx rewrite base urlMarch 24

    I would like the root url http://www.example.com to redirect to http://www.example.com/something/else This is because some weird WP plugin always sets a cookie on the base url, which doesn't let me cache it. I tried this directive: location / { rewri

  • How to change my base URLJune 7

    I have built a website using drupal. Now, the base URL is http://xxx.xxx.xxx.xxx/drupal. But I want to change base URL as http://xxx.xxx.xxx.xxx How do I do? Thanks. --------------Solutions------------- go to yousite/sites/default and open the settin

  • Custom Post Type Base URL

    Custom Post Type Base URLAugust 24

    Is it possible to not use the loop for the base URL of a custom post type. So for instance if my custom post type is 'directory'. I don't want http://www.mysite.com/directory/ to land at the loop page, I want to make a custom page template that will

  • with nginx having the base url rewrite to httpsSeptember 30

    I'd like only my base domain www.domain.com to be rewritten to https://www.domain.com By default in my https block I have it reroute to http:// if it's not ~uri = "/" (base domain) or static content. server { listen 443; set $ssltoggle 2; if ($u

  • AJAX calls fail when the base URL is setNovember 28

    I have installed the Drupal 7.17 security update, and I am having some issues with my site. If I comment out the $base_url ='www.xxx.com'; line in the setting.php file, the AJAX calls work; when I uncomment that line, the AJAX calls fail. What could

  • Change base URL of pages created by certain usersMarch 19

    Currently on wordpress all pages are created under the base URL (example.com/{PAGE}). Currently I am aware you can change the permalink of posts to example.com/{author}/{POST} but can this also be done for pages? On my site I have a main user 'admin'

  • How to get the base url?July 11

    (Drupal 7.22) We need to create a menu link to an external site, "https://example.com/some/path" /some/path is static, whereas "https://example.com" depends on site instance, such as web-dev.example.com web-qa.exmple.com web-rc.example

  • How do I change base URL when moving site from sub-directory to domain root?July 17

    I have developed a site in a sub-directory and now will be pointing a live URL to it. What do I need to do to ensure that the relative links in the menus etc will work under this new configuration. I have read that settings need to be changed in site

  • How to set base url for php widgetAugust 6

    SO, I have some php that I'm inserting into a widget that generates a list of pdfs within a directory on the root level of my wordpress install (see "Meeting Summaries" to the right here: http://mt-spacehosting.com/fisheries/plans/northeast-mult

  • Jetty: How to redirect base url?September 24

    Scenario: I'm using a jetty server. I have a webapp running on: myip/myWebApp Question: How to redirect base url to base url/something ie. http://190.23.30.1/ --> http://190.23.30.1/mywebapp So when a user hits http://190.23.30.1/ my server will redi

  • Programmatically change the Base URL?November 8

    Is there any way to programmatically change the Base URL, Just as the "locale" module does.. My Website is multi-lingual which has to recognize 3rd argument, after the language identifier. Some custom code will be triggered when base on the thir

  • in multi-site do you set base url for each sites settings?January 6

    Have just enabled security review module and it's alerting to base url not being uncommented and set. This is a multi-site so do I need to set the base url in each settings file for each site? I set the base url in settings for the root site but the

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.632 s.