This content has been marked as final.
Show 3 replies
-
1. Re: How to enable form field on click using ajax4jsf or rich
nbelaevski Oct 26, 2008 6:25 PM (in response to valatharv)Sure. Bind "disabled" attribute to model and re-render h:inputText using a4j:commandLink
-
2. Re: How to enable form field on click using ajax4jsf or rich
valatharv Oct 26, 2008 10:22 PM (in response to valatharv)Thanks for replying....
"Sure. Bind "disabled" attribute to model and re-render h:inputText using a4j:commandLink"
I am new to this, please suggest for "Bind "disabled" attribute to model " any sample.... -
3. Re: How to enable form field on click using ajax4jsf or rich
ilya_shaikovsky Oct 27, 2008 5:13 AM (in response to valatharv)this sample I've just written for another topic with toogle state changes. It should be also usefull for you.
page<h:form> <h:panelGrid columns="3" width="100%" columnClasses="tpanels,tpanels,tpanels"> <rich:simpleTogglePanel switchType="ajax" label="Ajax Switch Type" height="90px" opened="#{userBean.opened}" id="ajax"> This type allows to perform the partial view update instead of the whole page reloading. You also can reRender other components while the panel content is toggled. </rich:simpleTogglePanel> </h:panelGrid> <a4j:commandButton reRender="ajax" action="#{userBean.switchPanel}"></a4j:commandButton> </h:form>
javapublic boolean isOpened() { return opened; } public void setOpened(boolean opened) { this.opened = opened; } public void switchPanel() { setOpened(!isOpened()); }