With a wrapper. Have the component (externally accessible) receiving the
action call the appropriate subcomponent (only internally accessible.)
You could even use the value of the submit button (or any other field)
on the form as a signal to the processing action to select the subcomp,
for different processing effects.

So in your case, the action points to imageviewer, which calls
.nextimage if it sees $ARGS{submit} = 'next_image' or something.
.nextimage does its thing and returns to imageviewer.

RJ

Kristian Nilssen wrote:
> How can I set the action attribute of a form to be a subcomponent?
> Basically, I have a component called imageviewer with a button called 
> 'next' and in imageviewer is a subcomponent called .nextimage. I need to 
> make .nextimage the action for the next button and I also need to get 
> the .nextimage subcomponent to call imageviewer. How can I do these two 
> things?
>
> thanks, K.
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Mason-users mailing list
> Mason-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mason-users
>
>
>   




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to