[jboss-user] [JBoss Seam] - Re: Seam saying Datamodel saying row is Unavailable... WHY??

tony.herstell@gmail.com do-not-reply at jboss.com
Sun Apr 22 05:22:54 EDT 2007


Ok, I got it working by adding PAGE to the Models (No I have no idea why I needed to !)


  |     @DataModel(value="displayableCategoryDatamodel", scope=ScopeType.PAGE)
  |     private LinkedHashSet<DisplayableCategory> displayableCategorySet;
  | 
  |     @DataModelSelection(value="displayableCategoryDatamodel")
  |     private DisplayableCategory selectedDisplayableCategory;
  |     
  |     @DataModel(value="keywordsDatamodel", scope=ScopeType.PAGE)
  |     private LinkedHashSet<Keyword> keywordsSet;
  | 
  |     @DataModelSelection(value="keywordsDatamodel")
  |     private Keyword selectedKeyword;
  | 

anyhow,

So.. now I have this 


  | 
  | 							<h:dataTable var="eachKeyword" value="#{keywordsDatamodel}" rendered="#{keywordsDatamodel.rowCount>0}">
  | 
  | 								<h:column>
  | 									<f:facet name="header">
  | 										<h:outputText value="#{messages.keyword}" />
  | 									</f:facet>
  | 									<h:outputText value="#{eachKeyword.keyword}" />
  | 								</h:column>
  | 
  | 								<h:column>
  | 									<s:button value="#{messages.button_delete}"	
  | 									   action="#{advertisingCampaignController.deleteKeyword(eachKeyword)}"/>
  | 								</h:column>
  | 							</h:dataTable>
  | 
  | 

Why am I getting null in the routine for deleteKeyword(eachKeyword)??? for eachKeyword?


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

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



More information about the jboss-user mailing list