5

Polling every 5 seconds is bad imo and waste of resources. Polling generally slows things down as well. From what I can see if all you want is a notification for newly created, deleted case. Once you get the notification you can do a query and get the latest data. And, the best candidate here is Streaming API, Just Implement the VF client for streaming ...


3

jQuery uses normal CSS selectors-like syntax. It doesn't know that "i" is a variable that should be used, nor can it directly know this. Instead, you can use a template string: $(`.dummytableid th:eq(${i})`).css(... Note that we use backtick instead of apostrophe or quotation marks, and the ${variable} notation. This should result in each table being ...


2

The <apex:param> component used with <apex:outputText> is intended to provide parameters to the output text component for use within a message formatter: Within <apex:outputText>, there’s support for the tag to match the syntax of the MessageFormat class in Java: <apex:page> <apex:outputText style="font-style:italic" value=...


2

To not render a section, return a false value, not an "empty string." Also, a Boolean value is already a Boolean value, so there's no need to convert it to a Boolean value via IF. <apex:outputPanel rendered="{!activity.isanalytic}" layout="none"> <p>True Inside output panel</p> </apex:outputPanel> <apex:outputPanel rendered="{!...


2

Is there a better way to implement polling in my case, instead of using count variable, since it has no purpose in my usecase? You don't need the counter. You don't even need an action. Your poller could look like: <apex:actionPoller reRender="counter" interval="5"/> Also, the code that I have would it cause governor limit issue? No, each ...


2

You should be able to get this working by adding the immediate="true" attribute to your <apex:actionSupport> component. With that flag set, the Visualforce runtime won't validate other components prior to doing the form submission and allowing you to rerender the the page elements you need: A Boolean value that specifies whether the action ...


1

Your rerender doesn't work because its target id doesn't exist: <apex:commandButton value="submit" action="{!deserialize}" reRender="CaseStudyinvoiceBlock"/> Make sure to assign this id to your enclosing <apex:pageBlock> to see the contents of your page refresh after running the action {! deserialize }.


1

With standardStyleSheets="true", SFDC generates HTML markup that includes <div class="datePicker" id="datePicker" style="display: none; left: 230px; top: 42px;"><div class="dateBar"><img src="/img/s.gif" alt="Previous Month" class="calLeft" onblur="this.className = 'calLeft';" onclick="DatePicker.datePicker.prevMonth();" onfocus="this....


1

A pattern that can work better is to create a wrapper class that handles the parent/child relationships: public class Node { public SObject sob {get; private set;} public Node parent {get; private set;} public Node[] children {get; private set;} public Node(SObject sob) { this.sob = sob; this.children = new Node[] {}; }...


1

There's two key things missing that contribute to this error. The first is that your <apex:page> tag is missing the recordSetVar attribute that marks it as using a StandardSetController. The second is the attempt to bind to a property Contact.PageSize. The Apex standard controller (non-set version) doesn't offer a property PageSize that you can bind ...


Only top voted, non community-wiki answers of a minimum length are eligible