>I thought I was finally getting the hang of Shale/JSF/tiles/.... till now, 
>when it seems like something which *ought* to work, isn't.  I have a 
>"commandLink" in my jsp page and clicking on it does not go to the the 
>showSurvey method of my backing bean "worklist" - instead I return to an 
>empty page. Nothing in the logs either...(:(

I would add the 'immediate=true' attribute to your commandLink.  In Struts 
terms this is like a cancel submit button (bypasses validation).  It may be 
that you have validation errors and your navigation rules are not correct.  

Gary



--- Begin Message ---
Hi all:

I thought I was finally getting the hang of Shale/JSF/tiles/.... till now, 
when it seems like something which *ought* to work, isn't.  I have a 
"commandLink" in my jsp page and clicking on it does not go to the the 
showSurvey method of my backing bean "worklist" - instead I return to an 
empty page. Nothing in the logs either...(:(

Here's my code:

in jsp:
<h:dataTable id="items" value="#{worklist.assignments}" var="assignment">
        <h:column>
                <h:form>
                        <h:commandLink id="showSurvey" action
="#{worklist.showSurvey}">
                                <h:outputText value="#{assignment.name}" 
/>
                        </h:commandLink>
                </h:form>
        </h:column>
</h:dataTable>

The page above displays nicely with the correct number of items and 
correct names. (and the src seems to have the correct gobbledegook too, 
though I defintely cannot swear to that..;)) 

My problem is that when i click on the links above, my app does not seem 
to do anything. In fact it doesn't even go to my break point in the 
showSurvey method of my bean. (I have got another link elswhere with 
action="#{worklist.getWorkList}" which works great - which populates the 
above worklist.assignments, btw..)

Here's part of my faces-config.xml:
<managed-bean>
        <managed-bean-name>worklist</managed-bean-name>
        <managed-bean-class>
 com.intellicare.shaleNShark.action.workflow.WorkListManagerBean
        </managed-bean-class>
        <managed-bean-scope>request</managed-bean-scope>
</managed-bean>
<navigation-rule>
        <from-view-id>*</from-view-id>
                ...
        <navigation-case>
                <from-outcome>survey</from-outcome>
                <to-view-id>/survey.jsp</to-view-id>
        </navigation-case>
</navigation-rule>

And finally, in my backing bean, WorkListManagerBean  (which extends 
AbstractViewController), I have a method:
public String showSurvey(){
        ....
        return "survey";
}

Can anybody spot something off? Since other links are working, I really 
think something should be glaringly wrong - but i just can't see it..(:(

Many thanks in advance!
Geeta

--- End Message ---
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to