This content has been marked as final.
Show 8 replies
-
1. Re: listShuttle render problem v3.1.4 GA
ilya_shaikovsky Jan 30, 2008 8:23 AM (in response to vst777)show your code please and what is the scope of your theBean?
-
2. Re: listShuttle render problem v3.1.4 GA
tkuprevich Jan 30, 2008 8:24 AM (in response to vst777)vst777,
try to include listShuttle into some container component and rerender that container. Or if you don't mind - share your sources with us.
Thanks. -
3. Re: listShuttle render problem v3.1.4 GA
tkuprevich Jan 30, 2008 8:25 AM (in response to vst777)"ilya_shaikovsky" wrote:
show your code please and what is the scope of your theBean?
Sorry, I was late =) -
4. Re: listShuttle render problem v3.1.4 GA
vst777 Jan 30, 2008 8:37 AM (in response to vst777)Here's the code. The toolbar has a button to switch between the master and the slave panel. So initially only the master panel is shown. After clicking the button the slave panel is shown, but then no item in the listShuttle can be selected.
The managed bean is in request scope, but I used it on that page with<a4j:keepAlive beanName="theBean"/>.
So it should live during the page requests.<a4j:outputPanel id="tabContainer"> <a4j:outputPanel id="master" styleClass="#{(empty theBean.mode) ? '' : 'hidden'}"> <rich:tabPanel binding="#{theBean.masterTabPanel}"> <rich:tab binding="#{theBean.masterTab}"> <a4j:outputPanel binding="#{theBean.gridContainer}"/> </rich:tab> </rich:tabPanel> </a4j:outputPanel> <a4j:outputPanel id="slave" rendered="#{!empty theBean.mode}"> <rich:tabPanel binding="#{theBean.slaveTabPanel}"> <rich:tab binding="#{theBean.slaveTab0}"/> <rich:tab binding="#{theBean.slaveTab1}"> <a4j:outputPanel id="shuttle"> <rich:listShuttle targetValue="#{theBean.securityRolesAssigned}" sourceValue="#{theBean.securityRolesAvailable}" var="item" sourceCaptionLabel="Available Items" targetCaptionLabel="Selected Items" converter="listShuttleConverter"> <rich:column> <h:outputText value="#{item.name}"/> </rich:column> </rich:listShuttle> </a4j:outputPanel> </rich:tab> </rich:tabPanel> <rich:toolBar binding="#{theBean.slaveToolBar}"/> </a4j:outputPanel> </a4j:outputPanel>
-
5. Re: listShuttle render problem v3.1.4 GA
ilya_shaikovsky Jan 30, 2008 8:54 AM (in response to vst777)do you reRender "tabContainer" or nested "slave" container?
-
6. Re: listShuttle render problem v3.1.4 GA
vst777 Jan 30, 2008 9:31 AM (in response to vst777)I rerender the tabContainer.
-
7. Re: listShuttle render problem v3.1.4 GA
ilya_shaikovsky Jan 30, 2008 9:57 AM (in response to vst777)could you please send me working sample war with libs to reproduce this?
-
8. Re: listShuttle render problem v3.1.4 GA
vst777 Jan 31, 2008 10:08 AM (in response to vst777)ok. I try to create a sample war...coming soon