Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using datable can we limit the row ?

 
Prabhat Ranjan
Ranch Hand
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Tomahawk_selectManyCheckbox.gif
[Thumbnail for Tomahawk_selectManyCheckbox.gif]
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2458
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 397
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks for your suggestion.

Regards,
Prabhat
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic