-
1. Re: How can I generate JSF UI components ASYNCHRONOUSLY on a
shadowcreeper Oct 7, 2008 1:51 PM (in response to shiva.sk)You mean something like this?
<h:panelGroup id="newUserPanel"> <h:panelGroup id="newUserContent rendered="#{backingBean.newUserSelected}> <h:inputText ...> </h:panelGroup> </h:panelGroup> <a4j:commandButton value="New User" action="#{backingBean.selectNewUser}" reRender="newUserPanel"/>
-
2. Re: How can I generate JSF UI components ASYNCHRONOUSLY on a
shiva.sk Oct 8, 2008 12:28 AM (in response to shiva.sk)Hi,
Sorry, since I am new to RichFaces & Ajax4jsf, I did not get what exactly your code does.
What I want to achieve is dynamic (i.e., ASYNCHRONOUSLY using Ajax req-res) form generation, with different JSF input elements (text box,combo box,list box,select many list box,command button, etc .) which are bound to Managed Bean on a jsf/jsp page when an user clicks on any link or button or just an user request for that matter.
Regards,
Shiva -
3. Re: How can I generate JSF UI components ASYNCHRONOUSLY on a
shiva.sk Oct 8, 2008 12:32 AM (in response to shiva.sk)Hi,
Sorry, since I am new to RichFaces & Ajax4jsf, I did not get what exactly your code does.
What I want to achieve is dynamic (i.e., ASYNCHRONOUSLY using Ajax req-res) form generation, with different JSF input elements (text box,combo box,list box,select many list box,command button, etc .) on a jsf/jsp page when an user clicks on any link or button or just an user request for that matter. These input elements are bound to Managed Bean.
Regards,
Shiva -
4. Re: How can I generate JSF UI components ASYNCHRONOUSLY on a
shadowcreeper Oct 8, 2008 1:59 PM (in response to shiva.sk)The button should run an action in your backing bean that sets the property mentioned in the "rendered" attribute of the content panel, and then reRender the newUserPanel (which will then include the newUserContentPanel since its' rendered attribute value has changed).
You should do some google searches for RichFaces documentation. IIRC the IBM site has some good and useful articles about it (and Facelets and JSF in general).
Also, just quit thinking its complicated. It really is as simple as using rich: and a4j: components rather than the MyFaces equivalents. And even if you can't do that, there is always a4j:support to add it to the MyFaces components.
Probably the hardest part at first is learning how to use a4j:region correctly (but if you stick the whole page in an a4j:region, your usually going to be ok, and any problems are easily solved by posting your questions here and showing your code). -
5. Re: How can I generate JSF UI components ASYNCHRONOUSLY on a
shiva.sk Oct 14, 2008 7:08 AM (in response to shiva.sk)Hi Everybody,
Has anyone done this successfully till now ?? -
6. Re: How can I generate JSF UI components ASYNCHRONOUSLY on a
ilya_shaikovsky Oct 14, 2008 7:34 AM (in response to shiva.sk)you could add and remove components on the page dinamically using components binding. It doesn't matter if this ajax request or common post. So if you able to do this within pure JSF - then nothing difficult for you should appears.
-
7. Re: How can I generate JSF UI components ASYNCHRONOUSLY on a
shiva.sk Oct 17, 2008 2:01 AM (in response to shiva.sk)"ilya_shaikovsky" wrote:
you could add and remove components on the page dinamically using components binding. It doesn't matter if this ajax request or common post. So if you able to do this within pure JSF - then nothing difficult for you should appears.
Hi,
Could you provide working source code of your suggestion
Regards,
Shiva -
8. Re: How can I generate JSF UI components ASYNCHRONOUSLY on a
nbelaevski Oct 17, 2008 5:52 AM (in response to shiva.sk)The Ajax4JSF forums are closed, please move to the RichFaces Users forum: http://jboss.com/index.html?module=bb&op=viewtopic&p=4182856#4182856.
Thanks,
Nick