[prev in list] [next in list] [prev in thread] [next in thread] 

List:       myfaces-user
Subject:    Re: buttons doesn't show in t:datascroller
From:       "Cristi Toth" <cristi.toth () gmail ! com>
Date:       2007-07-30 11:24:20
Message-ID: 5aca2d400707300424h23293208o6d595b5744fca6f2 () mail ! gmail ! com
[Download RAW message or body]

those facets MUST have the standard names : 'first' , 'next' ...
the problem is that you gave those id's to your <t:graphicImages>
change the id's of the images and use the standard facet names (or else you
definitly not going to have them rendered)

On 7/30/07, song <songxh2@hotmail.com> wrote:
>
>
> i has encounter this problem.
> this is a bug fi you use tomahowk1.1.6  together with trinidad.
> this bug fixed in tomahowk1.1.7.
>
>
>
> Brummeline Braaten wrote:
> >
> > Brummeline Braaten <brummeline <at> gmail.com> writes:
> >
> >>
> >> I use a t:datascroller to scroll between pages in a t:datatable.
> >> The problem is that the buttons for fast forward, next, back etc
> >> isn't rendered in my page. I have the pictures for the buttons in my
> >> project and the path is correct. I do not get any error messages.
> >> The datascroller work because I get the pagenumbers and I can change
> page
> >> by
> >> clicking on them. How can I get the buttons to show on my page?
> >>
> >>
> >
> > My code is like this:
> >
> > <h:form>
> > <h:panelGroup id="panel">
> >  <t:dataTable var="notices" id="adminliste"
> > binding="#{notice.noticeTable}" rows="#{notice.numNoticePage}"
> > styleClass="metodevarselliste">
> >   <h:column id="idkolonne">
> >    <f:facet name="header">
> >     <h:outputText id="idheader"
> > value="#{msg.varsel_id}"></h:outputText>
> >    </f:facet>
> >    <h:commandLink id="noteclink" binding="#{notice.noticeLink}"
> > action="#{notice.getNoticeDetail}" >
> >    <h:outputText id="adminident"
> > value="#{notices.noticeId}"></h:outputText>
> >   </h:commandLink>
> >  </h:column>
> >  <h:column id="tittelkolonne" >
> >   <f:facet name="header">
> >    <h:outputText id="tittelheader"
> > value="#{msg.varsel_tittel}"></h:outputText>
> >   </f:facet>
> >   <h:outputText id="tittel"
> > value="#{notices.title}"></h:outputText>
> >  </h:column>
> > </t:dataTable>
> >
> > <h:panelGrid id="panel2" columns="1" styleClass="scrollerTable2"
> > columnClasses="standardTable_ColumnCentered" >
> >  <t:dataScroller id="varselscroller"
> >         for="adminliste"
> >         fastStep="3"
> >         pageCountVar="pageCount"
> >         pageIndexVar="pageIndex"
> >         styleClass="scroller"
> >         paginator="true"
> >         paginatorMaxPages="20"
> >         paginatorTableClass="paginator"
> >         paginatorActiveColumnStyle="font-weight:bold;"
> >      >
> >     <f:facet name="firstfacet">
> >         <t:graphicImage url="../images/arrow-first.gif" border="1"
> > id="first"/>
> >     </f:facet>
> >     <f:facet name="lastfacet">
> >         <t:graphicImage url="../images/arrow-last.gif" border="1"
> > id="last"/>
> >     </f:facet>
> >     <f:facet name="previousfacet">
> >         <t:graphicImage url="../images/arrow-previous.gif" border="1"
> > id="previous"/>
> >     </f:facet>
> >     <f:facet name="nextfacet">
> >         <t:graphicImage url="../images/arrow-next.gif" border="1"
> > id="next"/>
> >     </f:facet>
> >     <f:facet name="fastforwardfacet">
> >         <t:graphicImage url="../images/arrow-ff.gif" border="1"
> > id="fastf"/>
> >     </f:facet>
> >     <f:facet name="fastrewindfacet">
> >         <t:graphicImage url="../images/arrow-fr.gif" border="1"
> > id="fastr"/>
> >     </f:facet>
> > </t:dataScroller>
> >         </h:panelGrid>
> >
> >
> >       </h:panelGroup>
> > </div>
> > </div>
> >
> > </h:form>
> >
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/buttons-doesn%27t-show-in-t%3Adatascroller-tf4029508.html#a11856778
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>


-- 
Cristi Toth
-------------
Codebeat
www.codebeat.ro

[Attachment #3 (text/html)]

those facets MUST have the standard names : &#39;first&#39; , &#39;next&#39; \
...<br>the problem is that you gave those id&#39;s to your \
&lt;t:graphicImages&gt;<br>change the id&#39;s of the images and use the standard \
facet names (or else you definitly not going to have them rendered) \
<br><br><div><span class="gmail_quote">On 7/30/07, <b \
class="gmail_sendername">song</b> &lt;<a \
href="mailto:songxh2@hotmail.com">songxh2@hotmail.com</a>&gt; \
wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, \
204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <br>i has encounter this \
problem.<br>this is a bug fi you use tomahowk1.1.6&nbsp;&nbsp;together with \
trinidad.<br>this bug fixed in tomahowk1.1.7.<br><br><br><br>Brummeline Braaten \
wrote:<br>&gt;<br>&gt; Brummeline Braaten &lt;brummeline &lt;at&gt;  <a \
href="http://gmail.com">gmail.com</a>&gt; writes:<br>&gt;<br>&gt;&gt;<br>&gt;&gt; I \
use a t:datascroller to scroll between pages in a t:datatable.<br>&gt;&gt; The \
problem is that the buttons for fast forward, next, back etc <br>&gt;&gt; isn&#39;t \
rendered in my page. I have the pictures for the buttons in my<br>&gt;&gt; project \
and the path is correct. I do not get any error messages.<br>&gt;&gt; The \
datascroller work because I get the pagenumbers and I can change page <br>&gt;&gt; \
by<br>&gt;&gt; clicking on them. How can I get the buttons to show on my \
page?<br>&gt;&gt;<br>&gt;&gt;<br>&gt;<br>&gt; My code is like this:<br>&gt;<br>&gt; \
&lt;h:form&gt;<br>&gt; &lt;h:panelGroup id=&quot;panel&quot;&gt; \
<br>&gt;&nbsp;&nbsp;&lt;t:dataTable var=&quot;notices&quot; \
id=&quot;adminliste&quot;<br>&gt; binding=&quot;#{notice.noticeTable}&quot; \
rows=&quot;#{notice.numNoticePage}&quot;<br>&gt; \
styleClass=&quot;metodevarselliste&quot;&gt;<br> &gt;&nbsp;&nbsp; &lt;h:column \
id=&quot;idkolonne&quot;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;f:facet \
name=&quot;header&quot;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;h:outputText \
id=&quot;idheader&quot;<br>&gt; \
value=&quot;#{msg.varsel_id}&quot;&gt;&lt;/h:outputText&gt;<br> \
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;/f:facet&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h:commandLink \
id=&quot;noteclink&quot; binding=&quot;#{notice.noticeLink}&quot;<br>&gt; \
action=&quot;#{notice.getNoticeDetail}&quot; \
&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h:outputText id=&quot;adminident&quot; \
<br>&gt; value=&quot;#{notices.noticeId}&quot;&gt;&lt;/h:outputText&gt;<br>&gt;&nbsp;&nbsp; \
&lt;/h:commandLink&gt;<br>&gt;&nbsp;&nbsp;&lt;/h:column&gt;<br>&gt;&nbsp;&nbsp;&lt;h:column \
id=&quot;tittelkolonne&quot; &gt;<br>&gt;&nbsp;&nbsp; &lt;f:facet \
name=&quot;header&quot;&gt; <br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&lt;h:outputText \
id=&quot;tittelheader&quot;<br>&gt; \
value=&quot;#{msg.varsel_tittel}&quot;&gt;&lt;/h:outputText&gt;<br>&gt;&nbsp;&nbsp; \
&lt;/f:facet&gt;<br>&gt;&nbsp;&nbsp; &lt;h:outputText id=&quot;tittel&quot;<br>&gt; \
value=&quot;#{ notices.title}&quot;&gt;&lt;/h:outputText&gt;<br>&gt;&nbsp;&nbsp;&lt;/h:column&gt;<br>&gt; \
&lt;/t:dataTable&gt;<br>&gt;<br>&gt; &lt;h:panelGrid id=&quot;panel2&quot; \
columns=&quot;1&quot; styleClass=&quot;scrollerTable2&quot;<br>&gt; \
columnClasses=&quot;standardTable_ColumnCentered&quot; &gt; \
<br>&gt;&nbsp;&nbsp;&lt;t:dataScroller \
id=&quot;varselscroller&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
for=&quot;adminliste&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
fastStep=&quot;3&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
pageCountVar=&quot;pageCount&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
pageIndexVar=&quot;pageIndex&quot; \
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
styleClass=&quot;scroller&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
paginator=&quot;true&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
paginatorMaxPages=&quot;20&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
paginatorTableClass=&quot;paginator&quot;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
paginatorActiveColumnStyle=&quot;font-weight:bold;&quot; \
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;f:facet name=&quot;firstfacet&quot;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;t:graphicImage url=&quot;../images/arrow-first.gif&quot; \
border=&quot;1&quot;<br>&gt; \
id=&quot;first&quot;/&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/f:facet&gt; \
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;f:facet \
name=&quot;lastfacet&quot;&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;t:graphicImage url=&quot;../images/arrow-last.gif&quot; \
border=&quot;1&quot;<br>&gt; id=&quot;last&quot;/&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/f:facet&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;f:facet \
name=&quot;previousfacet&quot;&gt; \
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;t:graphicImage \
url=&quot;../images/arrow-previous.gif&quot; border=&quot;1&quot;<br>&gt; \
id=&quot;previous&quot;/&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/f:facet&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;f:facet \
name=&quot;nextfacet&quot;&gt; \
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;t:graphicImage \
url=&quot;../images/arrow-next.gif&quot; border=&quot;1&quot;<br>&gt; \
id=&quot;next&quot;/&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/f:facet&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;f:facet \
name=&quot;fastforwardfacet&quot;&gt; \
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;t:graphicImage \
url=&quot;../images/arrow-ff.gif&quot; border=&quot;1&quot;<br>&gt; \
id=&quot;fastf&quot;/&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/f:facet&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;f:facet \
name=&quot;fastrewindfacet&quot;&gt;<br> \
&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;t:graphicImage \
url=&quot;../images/arrow-fr.gif&quot; border=&quot;1&quot;<br>&gt; \
id=&quot;fastr&quot;/&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp; &lt;/f:facet&gt;<br>&gt; \
&lt;/t:dataScroller&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/h:panelGrid&gt; <br>&gt;<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
&lt;/h:panelGroup&gt;<br>&gt; &lt;/div&gt;<br>&gt; &lt;/div&gt;<br>&gt;<br>&gt; \
&lt;/h:form&gt;<br>&gt;<br>&gt;<br>&gt;<br>&gt;<br><br>--<br>View this message in \
context: <a href="http://www.nabble.com/buttons-doesn%27t-show-in-t%3Adatascroller-tf4029508.html#a11856778">
 http://www.nabble.com/buttons-doesn%27t-show-in-t%3Adatascroller-tf4029508.html#a11856778</a><br>Sent \
from the MyFaces - Users mailing list archive at <a \
href="http://Nabble.com">Nabble.com</a>.<br><br></blockquote></div> <br><br \
clear="all"><br>-- <br>Cristi Toth<br>-------------<br>Codebeat<br><a \
href="http://www.codebeat.ro">www.codebeat.ro</a>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic