Re: How to implement s:checkbox inverse value?

2023-09-02 Thread Lukasz Lenart
As far I understand you need this



pt., 1 wrz 2023 o 14:15 Burton Rhodes  napisaƂ(a):
>
> Not sure why I am hung up on this, but I'm trying to present a simple
> checkbox that functions inversely to the parameter value. In other words,
> when the value is true, the checkbox should be unchecked (and vice versa).
> I'm trying to avoid creating a specific Action variable for this or a
> hidden form field.  I'm sure I'm missing something very simple here, but
> can anyone tell me how to do this?
>
> Attempt 1
>  name="viewFilter.showCompleted" value="%{!viewFilter.showCompleted}"
> submitUnchecked="true"
> />
>
> Attempt 2
>  submitUnchecked="true" />

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



How to implement s:checkbox inverse value?

2023-09-01 Thread Burton Rhodes
Not sure why I am hung up on this, but I'm trying to present a simple
checkbox that functions inversely to the parameter value. In other words,
when the value is true, the checkbox should be unchecked (and vice versa).
I'm trying to avoid creating a specific Action variable for this or a
hidden form field.  I'm sure I'm missing something very simple here, but
can anyone tell me how to do this?

Attempt 1


Attempt 2