-
1. Re: editable List(boxes)
paul.dijou May 3, 2012 4:07 AM (in response to juza1)1 of 1 people found this helpful -
2. Re: editable List(boxes)
juza1 May 3, 2012 4:52 AM (in response to paul.dijou)Hi Paul,
I'm new about RF. Can you give me an example to follow on how to combine the two, please?
Thank you
Francesco
-
3. Re: editable List(boxes)
paul.dijou May 3, 2012 5:07 AM (in response to juza1)1 of 1 people found this helpfulSure. I would try something like :
<h:form> <rich:list value="#{beanAction.yourList}" var="_bean" type="ordered"> <rich:inplaceInput value="{_bean.yourAttribute}" /> </rich:list> <h:commandButton value="Save" action="#{beanAction.saveList()}"/> </h:form>
Not sure it will works and can't test it right now. If it's fail, I will test it tonight. This is RichFaces 4 code. If you are using Richfaces 3, you will need to replace <rich:list type="ordered"> with <rich:dataOrderedList>
-
4. Re: editable List(boxes)
juza1 May 3, 2012 9:33 AM (in response to paul.dijou)Thank you for the hint.
I prefer this solution as it has a better layout...
<rich:panel style="width:300px;height:100px;overflow: auto;">
<a4j:repeat value="#{detailModel.afterObject.metadata.getTitlesAsList()}"
var="title"
rows="#{detailModel.afterObject.metadata.getTitlesAsList().size()}"
id="repeat">
<h:panelGrid columns="1">
<rich:inplaceInput value="#{title.value}"/>
</h:panelGrid>
</a4j:repeat>
</rich:panel>
I would have preferred using orderingList in combination with inplaceInput, but it seams not possible...