commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Hane <chrish...@gmail.com>
Subject Re: Do <c:out/> and JSF play together?
Date Thu, 24 Aug 2006 14:56:18 GMT
Just tried that.

It appears that I don't even get far enough to evaluate the c:out value.

The error messages says there is no such thing as a <c:out /> tag?

How can I verify that I have the right version of jstl?

This is what I have in my header that loads the namespaces.

<ui:composition xmlns="http://www.w3.org/1999/xhtml"
                 xmlns:ui="http://java.sun.com/jsf/facelets"
                 xmlns:f="http://java.sun.com/jsf/core"
                 xmlns:h="http://java.sun.com/jsf/html"
                 xmlns:c="http://java.sun.com/jstl/core"
                 xmlns:t="http://myfaces.apache.org/tomahawk"
                 xmlns:its="http://itsolut.com/jsf/components/taglib"
                 xmlns:s="http://jboss.com/products/seam/taglib"
                 template="/template.xhtml">

Thanks,
Chris....

Gabriel Belingueres wrote:
> AFAIK, c:out tag doesn't work with the #{} syntax. Try it with ${}.
> 
> Gabriel
> 
> 2006/8/24, Chris Hane <chrishane@gmail.com>:
>> I am trying to create an array of arrays (basically a lookup) in
>> javascript on my page.  When I execute the following, I get an error
>> that c:out is not recognized.
>>
>> <c:out> Tag Library supports namespace: http://java.sun.com/jstl/core,
>> but no tag was defined for name: out
>>
>> I am using
>>  - myfaces 1.1.3
>>  - facelets 1.1.11
>>  - jboss/seam (latest)
>>  - jstl (not sure how to tell which version - looks like 1.1)
>>
>> Here is the code:
>>
>> <h:form id="form1">
>> <snip lots of facelets code/>
>>
>> <script type="text/javascript" language="Javascript1.1">
>>     ship = new Array(
>>       <c:forEach items="#{cart.methodThatReturnsASet}" var="rate">
>>          new Array(<c:out value="#{rate.method.id}"/>,
>>                    <c:out value="#{rate.amount}"/>)
>>       </c:forEach>
>>     );
>> </script>
>> </h:form>
>>
>>
>> I am trying to output two properties from each item in the set.  I've
>> tried different variations on the <c:out /> without success
>> (<h:outputText/>, straight el without a tag).
>>
>> Any thoughts on how I can output the two properties on the iterated 
>> items?
>>
>> Thanks,
>> Chris....
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message