[EMAIL PROTECTED] (Gary VanMatre) wrote on 09/06/2005 01:16:00 PM:

> >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. 

Thanks for your note, Gary. I tried your suggestion but with no success. 
Here's something more I noticed though: it seems like the command link 
isn't working only within the <h:datatable tag. iow, I moved the entire 
link outside the <h:datatable and then clicking on the link takes me where 
it should. Codewise, 
<h:form>
        <h:commandLink id="getSurvey" action="#{worklist.getSurvey}">
                <h:outputText value="get survey!" />
        </h:commandLink>
</h:form>

Above link *works*.

<h:dataTable id="items" value="#{worklist.assignments}" var="assignment">
        <h:column>
                <h:form>
                        <h:commandLink id="showSurvey" action="
#{worklist.getSurvey}"
                                immediate="true">
                                <h:outputText value="getSurvey within 
databale" />
                        </h:commandLink>
                </h:form>
        </h:column>
</h:dataTable>

But links above *don't* work..(:( So seems like the combination of 
<h:datatable and <h:commandLink  is giving me trouble. (I also tried 
removing the id="showSurvey" bit since I thought it may be a duplicate id 
problem, but no go..)

Any other ideas..?

> 
> Gary
> 

Thanks again!
Geeta

Reply via email to