You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by No Galz <an...@yahoo.com> on 2004/11/11 13:15:24 UTC

problem with Scrollable Table

Hii,

I am using the scrollable table functionality of
myfaces. I am able to get my datatable scrollable, but
the pageCount and pageIndex variable are missing in my
page. What could be the reason?? I m using the
following code..for getting the page variables...

        <x:dataScroller 
           id="scroll_2" 
           for="employeesData" 
           pageCountVar="pageCount"  
           pageIndexVar="pageIndex">
           
          <h:outputFormat value="Pages" >
            <f:param value="#{pageIndex}" />
            <f:param value="#{pageCount}" />
          </h:outputFormat>
        </x:dataScroller>

Do i need to set these variables in my bean..or it is
handled by the scroller component? Can someone help?

Regards,
fargo


		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


Re: problem with Scrollable Table

Posted by No Galz <an...@yahoo.com>.
Hii Birgit,

Thanks for your tip. It does work! 

I can see that the f:param doesn't work the way i
thought. But, f:param is used in the myfaces examples
and i just tried to make it run. 

Thanks for your help.
regards
fargo


--- Birgit Linner <bi...@ovsag.de> wrote:

> Hi!
> I am not sure, why your code is not working, I don't
> know, what your 
> outputText-part is doing.. I send you the code I use
> (and that is 
> working), perhaps you'll find some hints.
> 
> <x:dataScroller for="projektTabelle"
> id="dataScroller" 
> pageIndexVar="pageIndexVar"
> pageCountVar="pageCountVar">
>      <f:facet name="first"><h:outputText
> styleClass="dataScroller" 
> value="|<< Anfang"/></f:facet>
>      <f:facet name="previous"><h:outputText
> styleClass="dataScroller" 
> value="<< vorherige Seite"/></f:facet>
>      <f:facet name="next"><h:outputText
> styleClass="dataScroller" 
> value="n�chste Seite >>"/></f:facet>
>      <f:facet name="last"><h:outputText
> styleClass="dataScroller" 
> value="Ende >>|"/></f:facet>
>      <h:outputText value="Seite #{pageIndexVar} von
> #{pageCountVar}"/>
>   </x:dataScroller>
> 
> Best regards,
> Birgit
> 
> No Galz wrote:
> 
> >Hii,
> >
> >I am using the scrollable table functionality of
> >myfaces. I am able to get my datatable scrollable,
> but
> >the pageCount and pageIndex variable are missing in
> my
> >page. What could be the reason?? I m using the
> >following code..for getting the page variables...
> >
> >        <x:dataScroller 
> >           id="scroll_2" 
> >           for="employeesData" 
> >           pageCountVar="pageCount"  
> >           pageIndexVar="pageIndex">
> >           
> >          <h:outputFormat value="Pages" >
> >            <f:param value="#{pageIndex}" />
> >            <f:param value="#{pageCount}" />
> >          </h:outputFormat>
> >        </x:dataScroller>
> >
> >Do i need to set these variables in my bean..or it
> is
> >handled by the scroller component? Can someone
> help?
> >
> >Regards,
> >fargo
> >
> >
> >		
> >__________________________________ 
> >Do you Yahoo!? 
> >Check out the new Yahoo! Front Page. 
> >www.yahoo.com 
> > 
> >
> >
> >
> >
> >  
> >
> 
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


Re: problem with Scrollable Table

Posted by No Galz <an...@yahoo.com>.
Ohh...my stupidness. The resources file was having
problem. It does work with f:param too.

Sorry for my mistake.

regards
fargo
--- Birgit Linner <bi...@ovsag.de> wrote:

> Hi!
> I am not sure, why your code is not working, I don't
> know, what your 
> outputText-part is doing.. I send you the code I use
> (and that is 
> working), perhaps you'll find some hints.
> 
> <x:dataScroller for="projektTabelle"
> id="dataScroller" 
> pageIndexVar="pageIndexVar"
> pageCountVar="pageCountVar">
>      <f:facet name="first"><h:outputText
> styleClass="dataScroller" 
> value="|<< Anfang"/></f:facet>
>      <f:facet name="previous"><h:outputText
> styleClass="dataScroller" 
> value="<< vorherige Seite"/></f:facet>
>      <f:facet name="next"><h:outputText
> styleClass="dataScroller" 
> value="n�chste Seite >>"/></f:facet>
>      <f:facet name="last"><h:outputText
> styleClass="dataScroller" 
> value="Ende >>|"/></f:facet>
>      <h:outputText value="Seite #{pageIndexVar} von
> #{pageCountVar}"/>
>   </x:dataScroller>
> 
> Best regards,
> Birgit
> 
> No Galz wrote:
> 
> >Hii,
> >
> >I am using the scrollable table functionality of
> >myfaces. I am able to get my datatable scrollable,
> but
> >the pageCount and pageIndex variable are missing in
> my
> >page. What could be the reason?? I m using the
> >following code..for getting the page variables...
> >
> >        <x:dataScroller 
> >           id="scroll_2" 
> >           for="employeesData" 
> >           pageCountVar="pageCount"  
> >           pageIndexVar="pageIndex">
> >           
> >          <h:outputFormat value="Pages" >
> >            <f:param value="#{pageIndex}" />
> >            <f:param value="#{pageCount}" />
> >          </h:outputFormat>
> >        </x:dataScroller>
> >
> >Do i need to set these variables in my bean..or it
> is
> >handled by the scroller component? Can someone
> help?
> >
> >Regards,
> >fargo
> >
> >
> >		
> >__________________________________ 
> >Do you Yahoo!? 
> >Check out the new Yahoo! Front Page. 
> >www.yahoo.com 
> > 
> >
> >
> >
> >
> >  
> >
> 
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


Re: Tree Rendering question

Posted by No Galz <an...@yahoo.com>.
Hii,

My incomplete mail sent by mistake. My question is:

How i can define a default location for my icons??

In the example i have provided, my folder icon is not
rendered...where i m wrong?

Regards,
fargo


--- No Galz <an...@yahoo.com> wrote:

> Hii All,
> 
> In case of tree extension tag, how can one define
> the
> tree icon pictures? I used the following
> 
> <x:tree id="tree" 
>   value="#{treeModel}"
>   styleClass="tree"
>   nodeClass="treenode"
> selectedNodeClass="treenodeSelected"
> 						iconLine="/conf/images/tree/line.gif"
> 						iconNoline="/conf/images/tree/noline.gif"
> 						iconChild="/conf/images/tree/folder.png"
> 					
> iconChildFirst="/conf/images/tree/line_first.gif"
> 					
> iconChildMiddle="/conf/images/tree/line_middle.gif"
> 					
> iconChildLast="/conf/images/tree/line_last.gif"
> 						iconNodeOpen="/conf/images/tree/node_open.gif"
> 					
>
iconNodeOpenFirst="/conf/images/tree/node_open_first.gif"
> 					
>
iconNodeOpenMiddle="/conf/images/tree/node_open_middle.gif"
> 					
>
iconNodeOpenLast="/conf/images/tree/node_open_last.gif"
> 					
> iconNodeClose="/conf/images/tree/node_close.gif"
> 					
>
iconNodeCloseFirst="/conf/images/tree/node_close_first.gif"
> 					
>
iconNodeCloseMiddle="/conf/images/tree/node_close_middle.gif"
> 					
>
iconNodeCloseLast="/conf/images/tree/node_close_last.gif"
> 					
>                         expandRoot="true">
>                 </x:tree>
> 
> 
> 
> 		
> __________________________________ 
> Do you Yahoo!? 
> Check out the new Yahoo! Front Page. 
> www.yahoo.com 
>  
> 
> 



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


Tree Rendering question

Posted by No Galz <an...@yahoo.com>.
Hii All,

In case of tree extension tag, how can one define the
tree icon pictures? I used the following

<x:tree id="tree" 
  value="#{treeModel}"
  styleClass="tree"
  nodeClass="treenode"
selectedNodeClass="treenodeSelected"
						iconLine="/conf/images/tree/line.gif"
						iconNoline="/conf/images/tree/noline.gif"
						iconChild="/conf/images/tree/folder.png"
					
iconChildFirst="/conf/images/tree/line_first.gif"
					
iconChildMiddle="/conf/images/tree/line_middle.gif"
						iconChildLast="/conf/images/tree/line_last.gif"
						iconNodeOpen="/conf/images/tree/node_open.gif"
					
iconNodeOpenFirst="/conf/images/tree/node_open_first.gif"
					
iconNodeOpenMiddle="/conf/images/tree/node_open_middle.gif"
					
iconNodeOpenLast="/conf/images/tree/node_open_last.gif"
						iconNodeClose="/conf/images/tree/node_close.gif"
					
iconNodeCloseFirst="/conf/images/tree/node_close_first.gif"
					
iconNodeCloseMiddle="/conf/images/tree/node_close_middle.gif"
					
iconNodeCloseLast="/conf/images/tree/node_close_last.gif"
					
                        expandRoot="true">
                </x:tree>



		
__________________________________ 
Do you Yahoo!? 
Check out the new Yahoo! Front Page. 
www.yahoo.com 
 


Re: problem with Scrollable Table

Posted by Birgit Linner <bi...@ovsag.de>.
Hi!
I am not sure, why your code is not working, I don't know, what your 
outputText-part is doing.. I send you the code I use (and that is 
working), perhaps you'll find some hints.

<x:dataScroller for="projektTabelle" id="dataScroller" 
pageIndexVar="pageIndexVar" pageCountVar="pageCountVar">
     <f:facet name="first"><h:outputText styleClass="dataScroller" 
value="|<< Anfang"/></f:facet>
     <f:facet name="previous"><h:outputText styleClass="dataScroller" 
value="<< vorherige Seite"/></f:facet>
     <f:facet name="next"><h:outputText styleClass="dataScroller" 
value="nächste Seite >>"/></f:facet>
     <f:facet name="last"><h:outputText styleClass="dataScroller" 
value="Ende >>|"/></f:facet>
     <h:outputText value="Seite #{pageIndexVar} von #{pageCountVar}"/>
  </x:dataScroller>

Best regards,
Birgit

No Galz wrote:

>Hii,
>
>I am using the scrollable table functionality of
>myfaces. I am able to get my datatable scrollable, but
>the pageCount and pageIndex variable are missing in my
>page. What could be the reason?? I m using the
>following code..for getting the page variables...
>
>        <x:dataScroller 
>           id="scroll_2" 
>           for="employeesData" 
>           pageCountVar="pageCount"  
>           pageIndexVar="pageIndex">
>           
>          <h:outputFormat value="Pages" >
>            <f:param value="#{pageIndex}" />
>            <f:param value="#{pageCount}" />
>          </h:outputFormat>
>        </x:dataScroller>
>
>Do i need to set these variables in my bean..or it is
>handled by the scroller component? Can someone help?
>
>Regards,
>fargo
>
>
>		
>__________________________________ 
>Do you Yahoo!? 
>Check out the new Yahoo! Front Page. 
>www.yahoo.com 
> 
>
>
>
>
>  
>