Unified EL commandLink question

Hi,

I'm using GlassFish, which supports the Unified EL. The following code executes:

<h:form>

<ul id="articleDataList" class="listGroup1">

<c:forEach var="art" items="#{article.homePageArticles.wrappedData}">

<li id="li${art.id}" class="sortList">

<div class="story" id="story_div_${art.id}">

<h:commandLink action="#{article.detailSetup}">article #<h:outputText value="#{art.id}"/></h:commandLink>

<div id="handle_container_${art.id}" style="height:26px;overflow: visible;z-index: 500;position:relative;top:0">

<div id="handle${art.id}" class="story-handle">

<div id="article_menubar_${art.id}" class="yuimenubar">

</div>

</div>

</div>

<div id="Article.title.${art.id}" class="story_title_div" onclick="makeStoryTitleEditable(${art.id});">

${art.title}

</div>

<div class="story_leadin_div" id="Article.leadIn.${art.id}" name="Article.leadIn.${art.id}" onclick="makeEditable(this.id);">

<e:addMoreLink articleId="${art.id}" content="${art.leadIn}"/>

</div>

<!--div class="story_body_text_div" id="Article.bodyText.${art.id}" name="Article.bodyText.${art.id}" onclick="makeEditable(this.id);">

${art.bodyText}

</div-->

</div>

</li>

</c:forEach>

</ul>

</h:form>

But each of the links produced by the commandLink tag takes the user to the same article, rather than to the article whose link was clicked. How can I get the correct behavior?

Also, clicking any of these links causes a POST request to be issued. I would prefer to perform navigation using GET requests so that the user can reuse the URLs for various purposes (e.g., bookmarking, emailing). Is there some way to achieve this?

Thanks!

Greg

[2790 byte] By [greg_ederera] at [2007-10-3 8:42:46]
# 1
I figured it out. As everyone else reading this forum probably knows, the solution to this is to use <h:outputLink> instead of <h:commandLink>. I probably should have mentioned that I'm a JSF newbie.
greg_ederera at 2007-7-15 3:51:16 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...