https://ajax4jsf.dev.java.net
2006/8/3, Gerald Müllan <[EMAIL PROTECTED]
>:
Hi,
I think you can not achieve your goal with the sandbox ajax components.
What is about using AjaxAnywhere in combination with this tomahawk
component attribute
and binding it against a value model which is updated with the help of AA?
cheers,
Gerald
On 8/3/06, John Ruffin < [EMAIL PROTECTED]> wrote:
>
> 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.
>
>
--
Gerald Müllan
Schelleingasse 2/11
1040 Vienna, Austria
0043 699 11772506
[EMAIL PROTECTED]
--
Yours truly (Atenciosamente),
Rogério