Ideally, what I want to do is use the displayValueOnly input component
attribute to flip between display and edit modes:
displayValueOnly="#{searchForm.s2dEditMode}" - using Ajax.
However, I don't think I can do this using Sandbox input components because
they don't have this attribute as the Tomahawk input components do.
So, my work around is to use rendered="#{searchForm.s2dEditMode}" on
s:inputText and s:outputText components.
I have the following selectBooleanCheckboxAjax:
<s:selectBooleanCheckboxAjax id="toggle1"
value="#{searchForm.s2dEditMode}"/>
Based on the value of checkbox (toggle1) I want to render the correct
component.
I thought something like this would work:
<s:outputText value="#{searchForm.selectedS2D.shiptodeptname}"
rendered="#{searchForm.s2dEditMode}">
<s:listener on="toggle1"/>
</s:outputText>
Clicking toggle1 doesn't have any effect on the renedered="*" value. Looks
like it causes the get accessor method to fire on the component value
binding.
Any ideas on how I can acheive this display edit mode toggle with an Ajax
component?
--
View this message in context:
http://www.nabble.com/Ajax---toggle-display-edit-mode--tf2042635.html#a5623427
Sent from the MyFaces - Users forum at Nabble.com.