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
ShamilShamil 

Popups in Visualforce

Hello,

Does anybody have and idea of how to implement Ajax-style popups in Visualforce? Is there a way to avoid javascript?
An example would be a table with multiple columns and rows. Data in column one is a hyperlink that would popup a child window that would have some input fields and buttons on it with some custom logic.

I can't simply hide/show certain area of the page (like in the following example Visualforce Sample - Dynamic Edit Page) because I don't know how many rows are going to be in the table.

Thanks!


kyleRochekyleRoche
You are pretty much stuck w/ JavaScript... that's the J in AJAX, BTW :)

Check out www.extjs.com. They have some great UI components that work very well in a Visualforce page.
ShamilShamil
Ok, let me ask it this way - forget about Ajax. Let's say it is a basic popup (child VF page) that has some fields and can pass values to parent VF page.
The reason I am trying to avoid javascript is because I'd like to have all the business logic inside VF controller, and in that way to comply with MVC pattern.

Thanks
Cool_DevloperCool_Devloper
Hello Shamil,
 
I am stuck with a similar requirement where i need a small pop-up window to open wherein the user can fill in data and the same gets saved at the back end on submit.
 
Can you please let me know if you got some solution for this?
 
Many Thanks,
Cool_D
ShamilShamil

Hi Cool_D, unfortunately I haven't made any progress in this direction.

However, I do think that EXTJS and other similar third party libraries can be used to achieve this functionality.

I will keep researching on this.

ShamilShamil

Hey, Cool_D

 

Here is what I found today:

http://wiki.apexdevnet.com/index.php/Visualforce_Popup

 

HTH

DSLDSL
This pop-up demo is GPL which really limits the use in commercial apps. Sure we could re-invent and have our own hacked JS code. But how about an <apex:popupPanel> component from salesforce.com?
Cool_DevloperCool_Devloper
Thanks a ton shamil. That really helps!!

Well, i was trying to use YUI, but it seems it has limited usage as it is GPL.

But can i use its components for some implmentations??

Thanks,
Cool_D