[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-09-01 Thread mrohad
here is an example | | Suggestion #1 | #1 status - Open 12/12/2001 | #1 status - Compiling 3/12/2002 | #1 status - Acctped 5/10/2003 | Suggestion #2 | #2 status - Open 10/12/2001 | #2 status - Rejected 5/01/2003 | | Suggestion #1 and sug

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-09-01 Thread texan
On question #1, could you add some mockup HTML of what you're trying to do? It's easier to answer if we know exactly how you want to lay out the data. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968936#3968936 Reply to the post : http://www.jboss.com/ind

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-09-01 Thread bfo81
You could use ui:repeat and render the html table yourself. I found a page that could be interesting for you (regarding that "conditional" row): http://www.nabble.com/%3Cc:if%3E-block-within-%3Cui:repeat%3E--t1855407.html View the original post : http://www.jboss.com/index.html?module=bb&op=vi

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-08-31 Thread mrohad
it's really great! thanks a lot I really wanted to show the friends list row below the reguler person row but I guess it's impossible with the h:datatable. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968620#3968620 Reply to the post : http://www.jboss.com

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-08-31 Thread bfo81
I haven't seen a Seam example for that. It's been something else but that's a long time ago. Well, I just tried something out. I have a list of persons (my favorite example here in the seam forum *g*), and the person has friends (that are persons, too). In that list of persons each person has a

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-08-31 Thread mrohad
Thanks - that's a great solution for my second problem , regarding nested tables , is it working with dataModel? did you see any Seam example for that? can I use some how panelGrid in order to make it fill the all row? View the original post : http://www.jboss.com/index.html?module=bb&op=viewto

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-08-31 Thread bfo81
better idea for deleteSelected, with a real delete query (that's faster): Vector idsToDelete = new Vector(); | | for (Item item: listOfItems) | if(item.isDelete()) | idsToDelete.add(item.getId()); | | if (idsToDelete.size() == 0) | return null; | | String ids =

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-08-31 Thread bfo81
I've already seen an example with a nested table. But the problem is that you cannot put that nested table in a new ROW, since rows are "connected" only to the entities you iterate. But you can put a "sub-table" in a COLUMN. 2) I had an idea about your second question. You might add a property d

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-08-31 Thread bfo81
1) You can access the DataModelSelection from another bean or you can pass the id via request parameter. There are 2 examples in Seam showing both possibilities: The booking example and the blog example. 2) sry, don't know ;) View the original post : http://www.jboss.com/index.html?module=bb&o

[jboss-user] [JBoss Seam] - Re: 2 DataModel questions

2006-08-31 Thread mrohad
thanks , another question is how to nested table , on row click I would like to open a table in the row beloe the clicked row , is it possible? thanks View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968596#3968596 Reply to the post : http://www.jboss.com/ind