GeeCON Prague 2014*
The moose likes JSF and the fly likes using datable can we limit the row ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » JSF
Bookmark "using datable can we limit the row ?" Watch "using datable can we limit the row ?" New topic
Author

using datable can we limit the row ?

Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
HI Group,
can we use datatable for the output like this where we cna limit the no of rows !


my code is now this but i want to use datatable , i don't have option to use <t:selectManyCheckbox layoutWidth="7">
<h:panelGrid styleClass="panelGrid" id="gridDetailZorgnetwerk4" columns="4" columnClasses="top">
<hutputText styleClass="outputTextBig" id="gdz66" value="Product(en): "></hutputText>
<h:selectManyCheckbox id="ab" layout="pageDirection" value="#{zorgnetwerkController.nieuwZorgnetwerk.fysiekeProducten}" disabled="#{zorgnetwerkController.nieuwZorgnetwerk.zorgverlenerCombinaties != null && not empty(zorgnetwerkController.nieuwZorgnetwerk.zorgverlenerCombinaties)}">
<f:selectItems value="#{zorgnetwerkController.fysiekeProductItems}" />
</h:selectManyCheckbox>
<h:selectManyCheckbox id="abc" layout="pageDirection" value="#{zorgnetwerkController.nieuwZorgnetwerk.psychosociaalProducten}" disabled="#{zorgnetwerkController.nieuwZorgnetwerk.zorgverlenerCombinaties != null && not empty(zorgnetwerkController.nieuwZorgnetwerk.zorgverlenerCombinaties)}">
<f:selectItems value="#{zorgnetwerkController.psychosociaalProductItems}" />
</h:selectManyCheckbox>
<h:selectManyCheckbox id="abcd" layout="pageDirection" value="#{zorgnetwerkController.nieuwZorgnetwerk.serviceProducten}" disabled="#{zorgnetwerkController.nieuwZorgnetwerk.zorgverlenerCombinaties != null && not empty(zorgnetwerkController.nieuwZorgnetwerk.zorgverlenerCombinaties)}">
<f:selectItems value="#{zorgnetwerkController.serviceProductItems}" />
</h:selectManyCheckbox>
</h:panelGrid>


please see my attached file output like this !


please suggest on my Q.
thanks


[Thumbnail for Tomahawk_selectManyCheckbox.gif]

Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Prabhat Ranjan wrote: i don't have option to use <t:selectManyCheckbox layoutWidth="7">
This is the nth topic you opened about the same problem.

In your previous topics the Tomahawk t:selectManyCheckbox was suggested. You apparently then struggled all sides to install it which failed time on time, but you never have elaborated about the problems you encountered during installing so that we never can help you with that. Now you´re asking for another solutions or workarounds.

Why?

You can simply integrate Tomahawk in any JSF environment (both Sun Mojarra or Apache MyFaces, it doesn´t matter) by placing the Tomahawk JAR file and all of its dependencies (out of head, the commons-el, commons-logging, commons-fileupload and commons-io) in the classpath (the /WEB-INF/lib). That´s all.
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
No Bauke , you are right !
But client or my team members are not allowed to add external jar files.

they are saying to use alternate solution apart from using Tomahawk t:selectManyCheckbox. On which i also agrre its so easy to use it.

i am agree with you ! but could it be poasible to achive the same output by any other alternatives.


If possible suggest me !

Thanks
Prabhat
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Create a custom component which does the same as t:selectManyCheckbox. That's the only possibility.

But .. Why would you reinvent the wheel? This makes no utter sense to me. I really, really don't understand the aversion against "adding external jar files".
Prabhat Ranjan
Ranch Hand

Joined: Oct 04, 2006
Posts: 391
thanks for your suggestion.

Regards,
Prabhat
 
GeeCON Prague 2014
 
subject: using datable can we limit the row ?