function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
creemejcreemej 

Must all Visualforce pages render correctly in a Site?

Hi,

 

I have a test site with different Visualforce pages and some standard (FileNotFound, SiteRegister) and simple pages (just labels).

 

The standard and simple pages work fine, but my Visualforce pages do not render correctly.

These render like this:

���<�c�e�n�t�e�r�>� � � � � �<�t�a�b�l�e� �b�o�r�d�e�r�=�"�0�"� �w�i�d�t�h�=�9�0�%�>� � � � � � � � � �<�t�r�>�<�t�d� �v�a�l�i�g�n�=�t�o�p�>� � � � � � � � �<�t�a�b�l�e�>� � � � � � � � �<�t�r�>�<�t�d� �c�l�a�s�s�=�"�Q�u�o�t�e�H�e�a�d�e�r�L�a�b�e�l�"� �n�o�w�r�a�p�>�<�b�>����� �:�<�/�b�>�<�/�t�d�>�<�t�d�

 

The documentation says:

Creating a Force.com Site

To create a basic Force.com Site, you need to follow the following four steps:

  • Register a domain name
  • Create a Force.com Site using the domain name
  • Assign Visualforce pages to the Site

 

There must be some restrictions/limitations for the Visualforce pages, which I don't know.

Where can I find this information?

 

Thanks,

Jan

 

 

Message Edited by creemej on 27-11-2009 11:23 AM
Message Edited by creemej on 27-11-2009 11:24 AM
Message Edited by creemej on 27-11-2009 11:25 AM
Message Edited by creemej on 27-11-2009 11:25 AM
Best Answer chosen by Admin (Salesforce Developers) 
BulentBulent

When you associate your site with a portal then we pick the look and feel from portal setup
Your portal has a custom footer html file. 
I think that’s causing the issue. Either the file is corrupt or in a different language 

If so then you might want to change the site user language
 Site details> public access settings> view users> edit> change language>save

 

Message Edited by Bulent on 12-03-2009 11:44 AM

All Answers

paul-lmipaul-lmi
can you post an example of one of your pages?  it kind of looks like whatever you're using to edit your pages is inserting charactors into the pages before saving, or, the browser isn't understanding it, at the very least.
creemejcreemej

Here is a simple testpage, that doesn't render correctly:

 

<apex:page standardController="Contact">
<apex:pageBlock title="My Contact Details">
<p>Hello {!contact.FirstName}</p>
</apex:pageBlock>
<apex:detail relatedList="false" />
</apex:page>

 

This is just a simple page, the other pages are partly generated with Javascript.

I am building a spreadsheet-like console application, where I try to do a lot of things in a special way.

I first thaught that this was maybe the reason for the errors, but when even this simple page gives the same errors, than the reason must be something more general.

 

All pages (also the js-generated) work perfect in the Visualforce development environment, but they dont work in a Site.

 

For the moment I develop in the Force.com online environment and I use Firefox as the browser.

Message Edited by creemej on 03-12-2009 03:12 PM
BulentBulent

When you associate your site with a portal then we pick the look and feel from portal setup
Your portal has a custom footer html file. 
I think that’s causing the issue. Either the file is corrupt or in a different language 

If so then you might want to change the site user language
 Site details> public access settings> view users> edit> change language>save

 

Message Edited by Bulent on 12-03-2009 11:44 AM
This was selected as the best answer
creemejcreemej

Thanks Bulent, for the quick response.

 

I will read the Sites documentation now first ...