[richfaces-issues] [JBoss JIRA] Commented: (RF-2772) Make panelBarItem accordion functionality work with a4j:repeat

Adam Jenkins (JIRA) jira-events at lists.jboss.org
Tue Mar 25 21:57:51 EDT 2008


    [ http://jira.jboss.com/jira/browse/RF-2772?page=comments#action_12404683 ] 
            
Adam Jenkins commented on RF-2772:
----------------------------------

<< HELP NEEDED>>

sorry for shouting, wanted to catch anyone watching this jira on email :)

I've hit a snag, I've modified the code to check for UIRepeat, and added the import for org.ajax4jsf.component.UIRepeat to the PanelBarRendererBase...however I don't know how or where to modify the maven poms to make sure that dependency exists.  I'm doing a full build and I keep getting the following error:

richfaces_3.1.x\ui\panelbar\src\main\java\org\richfaces\renderkit\html\PanelBarRendererBase.java:[45,30] cannot find symbol 
symbol  : class UIRepeat
location: package org.ajax4jsf.component

Can anyone tell me what I'm doing wrong here and how to add this dependency?  I'm doing a full mvn clean install from the root (richfaces_3.1.x) directory

> Make panelBarItem accordion functionality work with a4j:repeat
> --------------------------------------------------------------
>
>                 Key: RF-2772
>                 URL: http://jira.jboss.com/jira/browse/RF-2772
>             Project: RichFaces
>          Issue Type: Feature Request
>    Affects Versions: 3.1.4
>         Environment: Tomcat 5.5, Java 5, Exadel Studio 4.0.4a
>            Reporter: Adam Jenkins
>
> Hi All,
> I'm trying to build a dynamic accordion (rich:panelBar) by enclosing the panelBarItems in an a4j:repeat tag....it renders the panelBarItems, however the accordion functionality doesn't work (IE 6).  If I do a standard (static) accordion it works fine, and, if I have a panelBar with static panelBarItems, followed by dynamic panelBarItems (inside an a4j:repeat) the static panelBarItems work fine, but the others don't (snippet below).  Is this a limitation of this component or a bug?
> In the below code, the panelBarItems labelled 'test' work perfectly, however the ones labelled 'some div' don't work at all.
> 		<t:panelGroup colspan="2">
> 			<rich:panelBar id="claim-panel-bar">
> 				<rich:panelBarItem id="bar1" label="test"></rich:panelBarItem>
> 				<rich:panelBarItem id="bar2" label="test"></rich:panelBarItem>
> 				<rich:panelBarItem id="bar3" label="test"></rich:panelBarItem>								
> 				<rich:panelBarItem id="bar4" label="test"></rich:panelBarItem>				
> 				<a4j:repeat id="claim-history-repeat" value="#{generalInformation.myItems}" var="item" binding="#{generalInformation.myItemsRepeat}">
> 					<rich:panelBarItem id="claim-panel" label="some div">
> 						some stuff
> 					</rich:panelBarItem>
> 				</a4j:repeat>				
> 			</rich:panelBar>
> 		</t:panelGroup>	
> Is this a limitation of the component, a bug, or am I doing something wrong here?
> Cheers
> Adam

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the richfaces-issues mailing list