I tried removing the <from-action> from the navigation-rule but no luck as
yet. It doesnot navigate.
My detailItem doesnot disclose neither does it navigate.
I guess I am going wrong somewhere with the NavigationHandler. after the
handleNavigation call, is there something that I need to trigger this
navigation?

- Rakesh.


Adam Winer wrote:
> 
> Remove <from-action>.  There is no action here (you passed
> null to the NavigationHandler!), just an outcome.
> 
> -- Adam
> 
> 
> On 9/4/07, Rakesh Patnaik <[EMAIL PROTECTED]> wrote:
>> Hi,
>> my application has a panel accordion component and I need to navigate to
>> different pages on disclosure of each of the showDetailItem's that it
>> holds.
>> For example:
>>                    <tr:panelAccordion discloseNone="true">
>>
>>                         <tr:showDetailItem text="PA1"
>> disclosureListener="#{backingBean.navigateToAppPage}">
>>                             <tr:outputText value="detail1"/>
>>                         </tr:showDetailItem>
>>
>>                         <tr:showDetailItem text="PA2"
>> disclosureListener="#{backingBean.navigateToMgmtPage}">
>>                             <tr:outputText value="detail2"/>
>>                         </tr:showDetailItem>
>>
>>                     </tr:panelAccordion>
>>
>> I tried using NavigationHandler code in the backing bean methods as
>> follows:
>>
>>  public void navigate(DisclosureEvent de){
>>         try{
>>             NavigationHandler navigator =
>> FacesContext.getCurrentInstance().getApplication().getNavigationHandler();
>>             navigator.handleNavigation (
>> FacesContext.getCurrentInstance(),
>> null, "xyz" );
>>             FacesContext.getCurrentInstance().renderResponse();
>>           }
>>           catch(Exception e){.....}
>>
>> "xyz" is a navigation outcome definition:
>>     <navigation-rule>
>>         <navigation-case>
>>             <from-outcome>xyz</from-outcome>
>>             <from-action>xyz</from-action>
>>             <to-view-id>/TestNavigation.jsp</to-view-id>
>>             <redirect/>
>>         </navigation-case>
>>     </navigation-rule>
>>
>>
>> but this doesnot work.
>>
>> Any suggestions as to how to achieve this navigation?
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-navigate-on-DisclosureEvent-using-a-tr%3AshowDetailItem-tf4379685.html#a12521159
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to