You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Brummeline Braaten <br...@gmail.com> on 2007/07/05 14:51:15 UTC

buttons doesn't show in t:datascroller

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?





Re: buttons doesn't show in t:datascroller

Posted by Cristi Toth <cr...@gmail.com>.
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 <so...@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

Re: buttons doesn't show in t:datascroller

Posted by song <so...@hotmail.com>.
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.


Re: buttons doesn't show in t:datascroller

Posted by Brummeline Braaten <br...@gmail.com>.
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> 



Re: h:inputText required="true" - no global message?

Posted by Martin Marinschek <ma...@gmail.com>.
Hi Ralf,

you should get a global message for required fields as well, so there
must be something wrong in the setup - can you post the jsp-code here?

regards,

Martin

On 7/27/07, Koester, Ralf <Ra...@dresdner-bank.com> wrote:
> Hi,
> I have a form that has several inputfields which have a validator.
> If something is not entered there will be a global message that there was an error
> and a field specific message.
>
> This works fine.
>
> But... I have one field which just has required="true" and for this I get no global message.
> Is there a Way to get there both messages: One global (that there went something wrong at all)
> and one specific for the required field?
>
> Best regards,
>
> Ralf
>


-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces