I put <h:outputText value="foo"/> inside the commandLinks and I got links
that all said foo.
I don't get why it won't find my page variable.
How can I get it to resolve my variables when they are just defined in
standard jsp like
<% String myText = "foo" %>
<h:commandLink action="success"><h:outputText
value="#{myText}"/></h:commandLink>
How do I get this to work?
Shawn
-----Original Message-----
From: Dennis Byrne
To: MyFaces Discussion
Sent: 1/15/2006 12:00 PM
Subject: Re: commandLink
Please make sure #{linkText} does not evaluate en empty String . I
don't see either of my proposed solutions in this scriptlet.
Dennis Byrne
>-----Original Message-----
>From: Garner, Shawn [mailto:[EMAIL PROTECTED]
>Sent: Sunday, January 15, 2006 10:06 AM
>To: ''MyFaces Discussion ''
>Subject: RE: commandLink
>
>I'm doing that. Here's an exerpt from the page:
>
><%
>
>final String linkPage =
>summaryRow.getLinkPage();//response.encodeURL(summaryRow.getLinkPage())
;
>
>final String linkText = summaryRow.getLinkText();
>
>final String linkTarget = summaryRow.getLinkTarget();
>
%>
> <%
>if(!StringUtil.isFieldBlank(linkPage)) { %>
>
<%
>if(StringUtil.isFieldBlank(linkTarget)) { %>
>
><h:commandLink action="#{linkPage}" value="#{linkText}" id="pageID"/>
>
>Action: <%=linkPage%> Text:<%=linkText%>
>
><% } else { %>
>
>Action: <%=linkPage%> Target: <%=linkTarget%> Text: <%=linkText%>
>
><h:commandLink action="#{linkPage}" target="#{linkTarget}"
>value="#{linkText}" id="pageID"/>
>
><% } %>
>
><% } else { %>
>
><% out.println(linkText); %>
>
><% } %>
>
>I put the Action: type stuff in there for debug and they all print
values
>but I don't get any links displayed.
>
>Shawn
>
>-----Original Message-----
>From: Dennis Byrne
>To: MyFaces Discussion
>Sent: 1/15/2006 1:40 AM
>Subject: Re: commandLink
>
>Set the value attribute of the commandLink element to "foo", or make
the
>commandLink element wrap a h:outputText element with the value
attribute
>set to "foo" .
>
>Dennis Byrne
>
>>-----Original Message-----
>>From: Garner, Shawn [mailto:[EMAIL PROTECTED]
>>Sent: Sunday, January 15, 2006 02:32 AM
>>To: '[email protected]'
>>Subject: commandLink
>>
>>I can't get my links to display. If I view source I see the
following:
>>I print the text to the page so I know I'm not passying in empty
>parameters.
>>
>><a href="#"
>>onclick="clear__5Fid0();document.forms['_id0'].elements['autoScroll'].
v
>alue=
>>getScrolling();document.forms['_id0'].elements['_id0:_link_hidden_'].v
a
>lue='
>>_id0:pageID';if(document.forms['_id0'].onsubmit){if(document.forms['_i
d
>0'].o
>>nsubmit())
>>document.forms['_id0'].submit();}else{document.forms['_id0'].submit();
}
>retur
>>n false;" id="_id0:pageID"></a
>>
>>Any help?
>>Shawn
>>
>>**********************************************************************
*
>*****
>>This email may contain confidential material.
>>If you were not an intended recipient,
>>Please notify the sender and delete all copies.
>>We may monitor email to and from our network.
>>**********************************************************************
*
>*****
>>
>
>
>***********************************************************************
*****
>This email may contain confidential material.
>If you were not an intended recipient,
>Please notify the sender and delete all copies.
>We may monitor email to and from our network.
>***********************************************************************
*****
>
****************************************************************************
This email may contain confidential material.
If you were not an intended recipient,
Please notify the sender and delete all copies.
We may monitor email to and from our network.
****************************************************************************