[jboss-user] [JBoss Seam] - Re: selectOneMenu problem

demetrio812 do-not-reply at jboss.com
Wed Aug 22 07:35:44 EDT 2007


I updated the project and it works now!!

Sorry for all the time you lost following me...

another little question:

I have a component in application scope:


  | 	<framework:entity-query name="linguaAll"
  | 		entity-manager="#{entityManager}"
  | 		ejbql="select lingua from Lingua lingua"
  | 		order="Descrizione"
  | 		scope="application"> 
  | 	</framework:entity-query>
  | 

I putted in application because it doesn't change after startup...

If I use it in a selectOneMenu in this way:



  |                 <h:selectOneMenu id="lingua" value="#{articoloHome.instance.lingua}" required="true">
  |                 	<s:selectItems value="#{linguaAll.resultList}" var="lingua" label="#{lingua.descrizione}"/>
  |     				<s:convertEntity />
  |                 </h:selectOneMenu>
  | 

It give me the "Value is not valid" error...

if I put the component in conversation scope it works, but I thought that application scope was fine coz it is longer than conversation scope, where do I wrong? and if application scope is bad how can I do to do not reload from DB at every new conversation?

Thanks again!

Demetrio Filocamo

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4076761#4076761

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4076761



More information about the jboss-user mailing list