Do you have:

<h:messages/>

on the top of your page? I noticed that I was once getting odd bean conversion errors and was being redirected to the page and they showed up in the messages. Maybe some properties are trying to be converted in your datatable? Also does it matter that you have lower case datatable? I think it should be dataTable? I don't know, I've just been so frustrated with JSF that I'm about to give up.

[EMAIL PROTECTED] wrote the following on 9/6/2005 3:01 PM:
[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



--
Rick

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

Reply via email to