Erlang/OTP Forums

Author Message

<  Erlyweb mailing list  ~  phased vars

jeffm
Posted: Fri Aug 15, 2008 4:56 am Reply with quote
User Joined: 29 Sep 2008 Posts: 43
Using Erlyweb version 0.7.1 I'm attempting to change from


hook(A) ->
{phased, {ewc, A},
fun(_Ewc, Data) ->
{ewc, html_container, index, [A, {data, Data}]}
end}.


to the addition of phased vars so that I can change the Nav bars, etc or
even turn everything off in the case of a XHR call. When ever I add
the phased vars parameter, thus,

{phased, {ewc, A},
fun(_Ewc, Data, PhaseVars) ->
{ewc, html_container, index, [A, {data, Data}, PhaseVars]}
end}.

and I get the error

{badarity,
{#Fun<muser_app_controller.0.99614393>,
[{ewc,
model,
view,
function,
[...Arg List...]

.....}

the model_controller:function returns
{response,
[{phased_vars, [{title, <<"New Title">>}]},
{body, {data, Rec}}
]}

and seems to render correctly in the corresponding view.

Any pointers to what is causing the error or where I should look?

Jeff.

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

Post received from mailinglist
View user's profile Send private message
Guest
Posted: Mon Aug 18, 2008 6:27 am Reply with quote
Guest
Hmm... it looks like you're doing the right thing at least from the
code you showed. Did you make sure that html_container:index() has
arity 3?

Yariv

On Thu, Aug 14, 2008 at 9:59 PM, jm <jeffm@ghostgun.com> wrote:
>
>
> Using Erlyweb version 0.7.1 I'm attempting to change from
>
>
> hook(A) ->
> {phased, {ewc, A},
> fun(_Ewc, Data) ->
> {ewc, html_container, index, [A, {data, Data}]}
> end}.
>
>
> to the addition of phased vars so that I can change the Nav bars, etc or
> even turn everything off in the case of a XHR call. When ever I add
> the phased vars parameter, thus,
>
> {phased, {ewc, A},
> fun(_Ewc, Data, PhaseVars) ->
> {ewc, html_container, index, [A, {data, Data}, PhaseVars]}
> end}.
>
> and I get the error
>
> {badarity,
> {#Fun<muser_app_controller.0.99614393>,
> [{ewc,
> model,
> view,
> function,
> [...Arg List...]
>
> .....}
>
> the model_controller:function returns
> {response,
> [{phased_vars, [{title, <<"New Title">>}]},
> {body, {data, Rec}}
> ]}
>
> and seems to render correctly in the corresponding view.
>
> Any pointers to what is causing the error or where I should look?
>
> Jeff.
>
> >
>

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

Post received from mailinglist
wailian
Posted: Tue Mar 20, 2012 2:50 am Reply with quote
Guest
One of them is the Ugg bailey button boot which has classic and uniquely designed buttons on its body to give that elegant and luxurious look. It has a fantastic look and this includes the Bailey Triplet Boot which has 3 buttons. These boots have a shaft (the upper part of the boot) which can be turned up or turned down depending upon your need. These buttons are both for style or decoration along with being functional or usable as well.

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum