This content has been marked as final.
Show 4 replies
-
1. Re: rich:inplaceSelect Label for default value
nofreak Apr 7, 2008 3:23 AM (in response to nofreak)HI,
no ideas how i could enable the labeling for the selected itemLabel? -
2. Re: rich:inplaceSelect Label for default value
nofreak Apr 14, 2008 11:36 AM (in response to nofreak)do nobody know how i could enable the itemLabel?
-
3. Re: rich:inplaceSelect Label for default value
ilya_shaikovsky Apr 14, 2008 12:14 PM (in response to nofreak)Do you able to achieve the same with h:selectOneMenu using this code?
-
4. Re: rich:inplaceSelect Label for default value
ilya_shaikovsky Apr 14, 2008 1:29 PM (in response to nofreak)this
<rich:inplaceSelect value="#{inplaceComponentsBean.inputValue}" defaultLabel="Click here to edit"> <f:selectItem itemValue="0" itemLabel="Option 1" /> <f:selectItem itemValue="1" itemLabel="Option 2" /> <f:selectItem itemValue="2" itemLabel="Option 3" /> <f:selectItem itemValue="3" itemLabel="Option 4" /> <f:selectItem itemValue="4" itemLabel="Option 5" /> </rich:inplaceSelect>
/** * */ package org.richfaces.demo.inplaces; /** * @author Ilya Shaikovsky * */ public class InplaceComponentsBean { private String inputValue; public String getInputValue() { System.out.println("InplaceComponentsBean.getInputValue()"); return inputValue; } public void setInputValue(String inputValue) { this.inputValue = inputValue; } public InplaceComponentsBean() { System.out.println("InplaceComponentsBean.InplaceComponentsBean()"); inputValue = "3"; } }
works fine for me. Option 4 active by default.