Timeline for Visualforce: calling method as an action inside conditional statement
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 14, 2015 at 14:13 | comment | added | justasd | hey @snehakem, yes, that's a good workaround and it works, but in this particular situation I'm coding the action for <apex:page>, not for <apex:commandButton>, so I can't have two <apex:page> elements in one VF page. But thanks a lot. | |
Jan 14, 2015 at 11:57 | comment | added | snehakem | hey @justasd, i too found a easy workaround, Please check and let me know. | |
Jan 14, 2015 at 11:57 | review | Low quality posts | |||
Jan 14, 2015 at 12:25 | |||||
Jan 14, 2015 at 11:56 | history | edited | snehakem | CC BY-SA 3.0 |
Improve answer
|
Jan 14, 2015 at 11:44 | comment | added | justasd | I found a workaround. Please check the Update3 section of the post. And thanks. | |
Jan 14, 2015 at 11:30 | comment | added | justasd | Yes, in this case it works as expected. | |
Jan 14, 2015 at 11:26 | comment | added | snehakem | does it work if you use only action="{!redirect}" ? @justasd | |
Jan 14, 2015 at 8:58 | comment | added | justasd | Yes. I edited the post. Please check the Update2 part of it. | |
Jan 14, 2015 at 5:00 | comment | added | snehakem | How have you defined your recirect method in controller. Can you display that part of code/Method? | |
Jan 13, 2015 at 11:33 | review | Low quality posts | |||
Jan 13, 2015 at 11:33 | |||||
Jan 13, 2015 at 11:16 | comment | added | justasd | I get "Unknown property 'EventStandardController.redirect'". I then use redirect(), getting save error again. Full code is here: <apex:page standardController="Event" extensions="CTRL_EventRedirect" action="{!if($Profile.Name !='Telemarketing', redirect, urlFor($Action.Event.NewEvent, null, null, true))}"/> | |
Jan 13, 2015 at 11:14 | history | answered | snehakem | CC BY-SA 3.0 |