myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: Javascript inside <tr:table or <tr:forEach loop
Date Wed, 12 Mar 2008 15:41:35 GMT
script is not a valid child tag of table

On Wed, Mar 12, 2008 at 8:08 AM, TRao <brightsunny2020@yahoo.com> wrote:
>
>  Hi
>
>  I need to call the javascript function for each row in a <tr:table, when I
>  write <th:script tag inside the <tr:table or <tr:forEach, it is simply
>  ignored. View/Source doesn't have the javascript call. Whereas the
>  <th:script outside the loop does apear in view/source. Here is sample code.
>
>
>  <trh:script generatesContent="true" text="alert('Test')"/>
>
>         <tr:table summary="Periodic table"
>                 id="searchResults"
>                 partialTriggers="button1"
>                 binding="#{searchResultsBackingBean.table}"
>                 value="#{searchResultsBackingBean.searchResults}" var="row"
>  rows="3">
>
>
>             <trh:script generatesContent="true" text="alert('Test')"/>
>
>             <tr:column>
>               <f:facet name="header">
>                 <tr:outputText value="locationName"/>
>               </f:facet>
>               <tr:inputText value="#{row.locationName}" />
>             </tr:column>
>         </tr:table>
>
>  --
>  View this message in context: http://www.nabble.com/Javascript-inside-%3Ctr%3Atable-or-%3Ctr%3AforEach-loop-tp16002526p16002526.html
>  Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>

Mime
View raw message