On Thu, Oct 8, 2009 at 4:43 AM, Hans <[email protected]> wrote:
>
> That msg id system looks fine.
>
> Will [messages] display all messages except messages with id set?
> I suppose you'll do it that way.

Actually, [messages] will continue to display all messages, regardless
of id. Or the value of msg, which replaces all the other messages
generated by the system with a single message output.

> Why are you having  [session msg_one] etc. markups?
> Is it not clear that
> [session if  "equal {=which} one ? msg_one=HI There"]
> will output msg_one, to a [messages one] marker?

Actually, I think you are right. Good point.

> It looks like duplicated, redundant code.
> Maybe I am missing something.

Nope. I tried it and it works just fine. I changed the form to this
and it gives even cooler results. Of course the whole point was
specific form validation messages. Oh, I really liked this suggestion
Hans!

[form]
[check one on] One   [check two on] Two   [check three on] Three
[session if_1 "equal {=one} on ? msg_one=HI There"]
[session if_2 "equal {=two} on ? msg_two=Well maybe"]
[session if_3 "equal {=three} on ? msg_three=Good Bye"]
[session passdata id]
[submit]
[form]

all: [messages]
1: [messages one]
2: [messages two]
3: [messages three]

Cheers,
Dan

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to