I'm trying to pass parameters while using immediate=true. (actionRegion is not an option)
Since this won't work:
<apex:inputText value="{!searchValue}" />
<apex:commandButton value="Search" action="{!doSearch}" immediate="true"/>
I tried to create a variable and use it like this:
1: <apex:variable var="input" value="" />
2: <apex:inputText value="{!input}"/>
3: <apex:commandButton value="Search" action="{!doSearch}" immediate="true">
4: <apex:param name="value" assignTo="{!searchValue}" value="{!input}" />
5: </apex:commandButton>
But in line 2 it tells me
Save error: Unknown property 'input'
Any idea if there is a way to define this variable with any kind of user input?
Last option would be some hacky JS like: onblur="setApexVar()"
any experience with this?