myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n.schweigha...@mit.de
Subject Problems with displaying buttons behind checkboxes
Date Tue, 04 Apr 2006 08:14:30 GMT
Hello,

I have got problems with displaying buttons behind checkboxes.

I have got some 'options' that I display dynamically like this:

<h:selectManyCheckbox value="#{bean.optionPool}">
	<f:selectItems value="#{bean.optionPoolList}" />
</h:selectManyCheckbox>

It is necessary to have checkboxes because the user is able to 
check some and click "goOn" and then happens something with the 
options.

Now I want to have a button behind any option which the user can click
and get more information about this option.

To solve this problem I thought about several things. 
1. It should be possible to add a link to every option in the selectItem.
But it isn´t possible.
2. I tried to define a table with <h:panelGrid>. 
In the first column I read out my checkboxes, that works. 
In the second column I read out a "buttonList" that I have filled in the
bean 
with buttons as much as I have options. That works, too. But to detect which
button was clicked, I need a h:dataTable. When I embed my buttonList with a 
h:dataTable nothing is displayed.

Here is the code:

<h:panelGrid columns="2" ...>
   <h:column>
	<h:selectManyCheckbox value="#{bean.optionPool}">
		<f:selectItems value="#{bean.optionPoolList}" />
	</h:selectManyCheckbox>
		  		     
   </h:column>   
   <h:column>
          <h:dataTable var="option" binding="#{bean.optionButtonTable}">
	     <c:forEach items="${sessionScope.bean.optionButtonList}" >
	              <h:panelGrid border="0" columns="1">
		             <h:commandLink value="Edit"
action="#{bean.showOptionInfo}" />
		  </h:panelGrid>
                 </c:forEach>
 	</h:dataTable>
   </h:column>
</h:panelGrid>	

Has anyone an idea what I can do?

Thank you very much

						


Nicole Schweighardt
Praktikantin System Integration

M.I.T newmedia GmbH 
Am Zollstock 1 · D-61381 Friedrichsdorf · www.mit.de
............................................................................
.
M.I.T - eSolutions für Marketing, Vertrieb und Service


Mime
View raw message