#58 ✓resolved
Rusty Klophaus

Checkbox not readable by wf:q/1

Reported by Rusty Klophaus | April 28th, 2010 @ 07:54 AM | in 2.0.1

From Fabian Król on the newsgroup:

I have simple code:
content() ->

   [
   #flash {},

   #checkbox {id=chb1, checked=true},
   #checkbox {id=chb2},

   #button { postback=accept }
   ].

event(accept) ->

   Chb1 = wf:q(chb1),
   Chb2 = wf:q(chb2),
   wf:flash(wf:f("~s ~s", [Chb1, Chb2])).

The behavior i would expect is to get information about checked/not
checked but i always receive value "on". It doesn't say anything about
the state of checkbox.

Of course i can remember the state in other place and react with
postback in checkbox object but it seems to by ugly ;)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Nitrogen Web Framework for Erlang

Pages