[jboss-user] [JBoss Seam] - Re: Question on rendering a @Datamodel

2007-05-21 Thread straubp
Maybe like this:


  | h:dataTable value=#{...} var=row rowClasses=#{row.special ? 'special' 
: ''}
  | ...
  | /h:dataTable
  | 

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4047140#4047140

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047140
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Question on rendering a @Datamodel

2007-05-21 Thread hasc
thanks, but this did not work.

i tried
#{item.special ? 'parent' : 'child'}

which renderes all rows with class=child



View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4047154#4047154

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047154
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss Seam] - Re: Question on rendering a @Datamodel

2007-05-21 Thread hasc
i found a possible solution but this seems a little ugly to me.

i wrote a method 

public String getRowClasses {

}

which loops over the Set and generates a comma seperated list with the class 
names depending on the special property of each object.

so:
rowClasses=#{budgetOverview.rowClasses}

if theres a better solution tell me please.

regards,
hasc








View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4047173#4047173

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4047173
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user