[jboss-user] [JBoss Seam] - Re: how to force ajax region refresh
nayanj
do-not-reply at jboss.com
Mon Sep 24 00:17:20 EDT 2007
Here you go:
| <h:form>
| <a:region id="treeRegion">
| <rich:tree id="tree" switchType="ajax" style="width:300px" value="#{library.data}"
| var="item" nodeFace="#{item.type}" showConnectingLines="false"
| binding="#{dataSourceTree}" componentState="#{library.treeState}">
| <rich:treeNode id="leafNode" type="leaf" iconLeaf="img/blank.gif" nodeClass="checkbox">
| <h:selectBooleanCheckbox id="serviceCheckbox" value="#{item.selected}" styleClass="checkbox">
| <a:support event="onclick" actionListener="#{item.setSelected}" RequestDelay="3" reRender="treeRegion" immediate="true"/>
| </h:selectBooleanCheckbox>
| <h:outputText id="leafText" value="#{item.name}" />
| </rich:treeNode>
|
| <rich:treeNode id="categoryNode" type="leafCategory" icon="img/blank.gif" nodeClass="checkbox">
| <h:selectBooleanCheckbox id="categoryCheckbox" value="#{item.selected}" styleClass="checkbox">
| <a:support event="onclick" actionListener="#{item.setSelected}" RequestDelay="3" reRender="treeRegion" immediate="true"/>
| </h:selectBooleanCheckbox>
| <h:outputText id="categoryText" value="#{item.name}" />
| </rich:treeNode>
|
| </rich:tree>
| </a:region>
| </h:form>
|
tried lot of things.. reRender just don't seem to work in this case..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4087717#4087717
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4087717
More information about the jboss-user
mailing list