myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sijaffer <sijaf...@gmail.com>
Subject Re: [Trinidad] - Passing parameters with charts to back end bean
Date Mon, 22 Feb 2010 17:20:02 GMT


Anyone??



sijaffer wrote:
> 
> I am trying to pass two parameters with a trinidad chart, is that
> possible, I get 
> 
> setActionListener must be inside of a UIComponent tag.
> 
> my jsp has
> 
> 				<tr:chart id="chart" inlineStyle="width:680px; height:400px;"
> 							value="#{iPIChartBean.value}" binding="#{iPIChartBean.component}">
> 							<tr:setActionListener from="HPI" to="ScenarioItemType"/>
> 							<tr:setActionListener from="3" to="ScenarioItemID"/>
> 				</tr:chart>
> 
> Bean code:
> 			RequestContext context = RequestContext.getCurrentInstance();
> 			Map map = context.getPageFlowScope();
> 			ScenarioItemType = (String)map.get("ScenarioItemType");
> 			ScenarioItemID = (Integer)map.get("ScenarioItemID");
> 			_chartModel.setScenarioItemID(ScenarioItemID);
> 			_chartModel.setScenarioItemType(ScenarioItemType);
> 
> what am I doing wrong. 
> 
> I have tried the <f:param solution but get null when I use FaceContext to
> get the data.
> 
> 
> Regards,
> 
> Sameer Jaffer
> 

-- 
View this message in context: http://old.nabble.com/-Trinidad----Passing-parameters-with-charts-to-back-end-bean-tp27660062p27690817.html
Sent from the My Faces - Dev mailing list archive at Nabble.com.


Mime
View raw message