wired event triggered more than once

35 views
Skip to first unread message

Samir

unread,
Mar 3, 2015, 9:06:12 AM3/3/15
to nitro...@googlegroups.com
Hi,

I have a view (see below) with a wired event to load_data at at startup. I eventually found that the callback is called 3 times instead of just once.
I guess i've made a mistake but i don't know what and why :)

Any clue, please ?

Sincerely

Samir


menu() -> 
#mobile_panel{id = sub_binding, position=left,
        display_mode=overlay,
        theme=a, body=[#label{text = "empty"}]}.

body() -> 
    Content = [
#panel{class="error", id=board_ctrl, style="display:none"},
#br{},
#mobile_collapsible_set{
header_theme=b,
content_theme=b,
body=[
#mobile_collapsible{
header_text="Applications",
id = app,
collapsed = true,
content_body=[
]}
]}
],

wf:wire(#event{postback=load_data}),
wf:clear_session(),
Content.


%%%
%%% Event Handlers
%%%

event(load_data) ->

io:format("call load_data\n"),
ok.


Jesse Gumm

unread,
Mar 3, 2015, 6:41:14 PM3/3/15
to nitrogenweb

Hi Samir,

Sorry for the delay (trapped in meetings all day). I'm not sure, I'll have to see if I can reproduce this.

I'll get back to you,

-Jesse

--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

--
You received this message because you are subscribed to the Google Groups "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nitrogenweb...@googlegroups.com.
To post to this group, send email to nitro...@googlegroups.com.
Visit this group at http://groups.google.com/group/nitrogenweb.
For more options, visit https://groups.google.com/d/optout.

Samir

unread,
Mar 9, 2015, 12:09:31 PM3/9/15
to nitro...@googlegroups.com
Hi Jesse,

I'm still excepting your help regarding this issue.

Thank you

Sincerely

Samir

Jesse Gumm

unread,
Mar 9, 2015, 12:11:53 PM3/9/15
to nitrogenweb

Yep, I'm sorry, I was out of town for part last week. But Ill be looking into this this week.

Sorry for my non-responsiveness.

-Jesse

--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

Ramkrishna Kulkarni

unread,
Mar 11, 2015, 11:15:14 PM3/11/15
to nitro...@googlegroups.com
Hello Samir,

I tried this but could not reproduce. Event is generated only once. I'm on Ubuntu, Erlang 17.4 with Cowboy.

What are your environment details? Nitrogen and Erlang version, HTTP server type, OS etc?

Jesse Gumm

unread,
Mar 12, 2015, 6:10:05 PM3/12/15
to nitrogenweb
Hi Samir,

I'm so sorry this is taking so long. I've been completely swamped the
past two weeks. To simplify this, could you post a completed sample
project demonstrating this behavior which I could then simply clone
and run to see what it does? Otherwise, there are things like the
templates, additional JS, or any other factors that might be causing
unintended side effects.

If you're uncomfortable giving it out publicly, feel free to email
directly to me (gu...@sigma-star.com).

Thanks,

-Jesse
> --
> You received this message because you are subscribed to the Google Groups
> "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to nitrogenweb...@googlegroups.com.
> To post to this group, send email to nitro...@googlegroups.com.
> Visit this group at http://groups.google.com/group/nitrogenweb.
> For more options, visit https://groups.google.com/d/optout.



--
Reply all
Reply to author
Forward
0 new messages