[ 
http://www.stripesframework.org/jira/browse/STS-176?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter closed STS-176.
--------------------------


> How to define "event" for stripes:link tag?
> -------------------------------------------
>
>                 Key: STS-176
>                 URL: http://www.stripesframework.org/jira/browse/STS-176
>             Project: Stripes
>          Issue Type: Improvement
>          Components: Tag Library
>    Affects Versions: Release 1.3
>         Environment: windows xp sp2,IE6.0
>            Reporter: cleverpig
>            Assignee: Tim Fennell
>
> Thank for Tim's team great work!
> It's my problem or request:How to define "event" for stripes:link tag?
> At first,link Tag can define link params,but it doesn't call stripes's event 
> handler.
> When we use link tag just like tranditional http href,we maybe need to fire 
> our stripes's event handler for doing something.
> Without I hoped calling event handler function as I saied above,I can 
> manually process this work(calling event Handler) acoording my link param 
> value(<stripes:link-param name="eventName" value="EventHandler01"/>).
> This my code snippet in jsp:
> <stripes:link href="/actives/activeManager.action" 
> name="getPublishedActiveList">
>       <stripes:link-param name="activeId" value="${activeItem.id}"/>
>       <stripes:link-param name="eventName" value="EventHandler01"/>
>       ${activeItem.remark}
> </stripes:link>
> And in my activeManager.action,I must make a default event handler for 
> dispatch eventHandler function by link-param value.
> This my code snippet in actionBean:
> public Resolution dispatchPage(){
>         String activeId=getContext().getRequest().getParameter("eventName");
>         if (eventName.equals("EventHandler01")){
>               //call event handlers
>         }
>        else{
>             //call other process
>        }
> }
> Some body can give me better solution than it? Anyone's suggestion is my hope.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to