• A Wannabe
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies

I have two VF pages and Page 1 has some data which I want in Page 2, is it possible to get this data using JavaScript/JQuery? The constraint here is that the hyperlink to navigate to Page 2 is in a VisualForce template which has its own controller separate from those of both the Pages which use this template.

I am trying to output a custom picklist in a visualforce page

 

This works fine - but I'm lost to how to make it display as a drop-down

 

<apex:page controller="sampleCon">
    <apex:form >
        <apex:selectList value="{!countries}" multiselect="true">
            <apex:selectOptions value="{!items}"/>
        </apex:selectList><p/>

        <apex:commandButton value="Test" action="{!test}" rerender="out" status="status"/>
    </apex:form>

    <apex:outputPanel id="out">
        <apex:actionstatus id="status" startText="testing...">
            <apex:facet name="stop">
                <apex:outputPanel >
                    <p>You have selected:</p>
                    <apex:dataList value="{!countries}" var="c">{!c}</apex:dataList>
                </apex:outputPanel>
            </apex:facet>
        </apex:actionstatus>
    </apex:outputPanel>
</apex:page>

 

Please can someone point me in the right direction - thanks