You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Toni Lyytikäinen <to...@gmail.com> on 2007/07/02 10:04:02 UTC

The -tag - how to use properly?

I'm trying to make a simple page like the one in the struts showcase app
that displays a tree, and when the user clicks a node, the page will display
information about that node. The problem is however, that the documentation
on the tree-tag is scarce and the example in the showcase app (version 2.0.8)
doesn't work. It seems the event processing isn't working. Here's what I'm
trying to work up from:

<script language="JavaScript" type="text/javascript">
    dojo.event.topic.subscribe("treeSelected", function
treeNodeSelected(node)) {
        alert("It works!");
    });
</script>

<s:tree
    id="dep_structure"
    theme="ajax"
    rootNode="%{department}"
    childCollectionProperty="children"
    nodeIdProperty="id"
    nodeTitleProperty="name"
    toggle="explode"
    treeSelectedTopic="treeSelected" />

I've also tried the approach in the showcase app, but it doesn't work
either. So how can I subscribe to the events sent by the tree constructed
with the tree-tag?

Re: Struts 2 EventDispatcherAction ?

Posted by Nuwan Chandrasoma <my...@gmail.com>.
Hi,

http://struts.apache.org/2.x/docs/action-configuration.html#ActionConfiguration-WildcardMethod

Thanks,

Nuwan


----- Original Message ----- 
From: <Ma...@virginmoney.com>
To: "Struts Users Mailing List" <us...@struts.apache.org>
Sent: Monday, July 02, 2007 8:14 AM
Subject: Struts 2 EventDispatcherAction ?


> HI,
>
> Is there is any interface similar to EventDispatcherAction(in struts 
> 1.2.9)
> in struts 2 by which I could invoke different action methods based on the
> parameters
>
> Manoj.
>
>
> This e-mail is intended to be confidential to the recipient. If you 
> receive a copy in error, please inform the sender and then delete this 
> message. Virgin Money do not accept responsibility for changes made to any 
> e-mail after sending. Virgin Money have swept, and believe this e-mail to 
> be free of viruses and profanity but make no guarantees to this effect.
>
> Virgin Money Personal Financial Service Ltd is authorised and regulated by 
> the Financial Services Authority. Registered in England no. 3072766. 
> Entered on the Financial Services Authority's Register 
> http://www.fsa.gov.uk/register/. Register Number 179271. The Virgin 
> Deposit Account is a personal bank account with The Royal Bank of 
> Scotland.
>
> Virgin Money Unit Trust Managers Ltd is authorised and regulated by the 
> Financial Services Authority. Registered in England no. 3000482. Entered 
> on the Financial Services Authority's Register. Register Number 171748.
>
> Virgin Money Ltd. Registered in England no. 4232392. Introducer appointed 
> representative only of Virgin Money Personal Financial Service Ltd.
>
> Virgin Money Management Services Ltd. Registered in England no.3072772.
>
> Virgin Money Group Ltd. Registered in England no.3087587.
>
> All the above companies have their Registered office at Discovery House, 
> Whiting Road, Norwich NR4 6EJ.
>
> All products are open only to residents of the United Kingdom.
>
> This message has been checked for viruses and spam by the Virgin Money 
> email scanning system powered by Messagelabs.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Struts 2 EventDispatcherAction ?

Posted by Ma...@virginmoney.com.
HI,

Is there is any interface similar to EventDispatcherAction(in struts 1.2.9)
in struts 2 by which I could invoke different action methods based on the
parameters

Manoj.


This e-mail is intended to be confidential to the recipient. If you receive a copy in error, please inform the sender and then delete this message. Virgin Money do not accept responsibility for changes made to any e-mail after sending. Virgin Money have swept, and believe this e-mail to be free of viruses and profanity but make no guarantees to this effect.

Virgin Money Personal Financial Service Ltd is authorised and regulated by the Financial Services Authority. Registered in England no. 3072766. Entered on the Financial Services Authority's Register http://www.fsa.gov.uk/register/. Register Number 179271. The Virgin Deposit Account is a personal bank account with The Royal Bank of Scotland.

Virgin Money Unit Trust Managers Ltd is authorised and regulated by the Financial Services Authority. Registered in England no. 3000482. Entered on the Financial Services Authority's Register. Register Number 171748.

Virgin Money Ltd. Registered in England no. 4232392. Introducer appointed representative only of Virgin Money Personal Financial Service Ltd.

Virgin Money Management Services Ltd. Registered in England no.3072772.

Virgin Money Group Ltd. Registered in England no.3087587.

All the above companies have their Registered office at Discovery House, Whiting Road, Norwich NR4 6EJ. 

All products are open only to residents of the United Kingdom.

This message has been checked for viruses and spam by the Virgin Money email scanning system powered by Messagelabs.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org