[JBoss Tools (users)] - Re: Everything You Wanted to Know about Seam, but were afrai
by djfjboss
It's not that I don't like to combine things myself but rather that I was hoping it would not be such a maze and guessing game. A clear, accurate and up to date guide to getting a basic configuration up and running would greatly assist those of us taking a look at these, almost certainly, key pieces of technology. http://labs.jboss.com/jbossseam/gettingstarted is a very good start but the Eclipse plug-in side of things is a little vague. After all, the name of the game, from my application development perspective at least, is software development and these tools should help us get to that point quicker rather than being a significant obstacle in themselves. It's not that I can't be bothered to RTFM - I don't know where the FM is!
Eclipse is the Java IDE of choice within my company and that is a constraint I was hoping JBoss/Seam would be able to accommodate. Given the prevalence of Eclipse in the marketplace, I don't think it's an unreasonable expectation and the existence of the JBoss Eclipse plug-in would seem to confirm this. If it is unreasonable, a clear statement from JBoss on what actually does work would be helpful.
Given that you represent JBoss I would have hoped for some more specific answers to my questions, this would be of great help not only to myself but to anyone else evaluating these technologies; that would still be appreciated.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085492#4085492
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085492
18 years, 10 months
[JBoss Seam] - Re: Hibernate Search and JBoss Seam example
by brachie
Hi Seam-users,
I have a question concerning hibernate search and thought is would fit best in this thread.
In my app I want to use a projection for a FullTextQuery to retrieve the search score of the results. What I do is the following:
| @Datamodel
| List<Object[]> searchResults;
| ...
| query = searchQuery(buildLuceneSearchString());
| query.setProjection(FullTextQuery.SCORE, FullTextQuery.THIS);
| searchResults= query.setMaxResults(pageSize + 1).setFirstResult(pageSize * currentPage).list();
| ...
|
To output the score and persons data in the JSF I do:
| ...
| <rich:dataTable id="searchResults" rows="10" value="#{searchResults}" var="person" rendered="#{searchResults !=null and searchResults.rowCount gt 0}">
| <rich:column>
| <f:facet name="header">Score</f:facet>
| <h:outputText value="#{person[0]}" />
| </rich:column>
| <rich:column>
| <f:facet name="header">Name</f:facet>
| <h:outputText value="#{person[1].vorName}" />
| </rich:column>
| <rich:column>
| <f:facet name="header">Nachname</f:facet>
| <h:outputText value="#{person[1].nachName}" />
| </rich:column>
| ...
|
Unfortunately this gives me an error while rendering the JSF. Is there anybody who have tried such a projection with Hibernate search and representing the results in JSF? Is the EL correct to access the data in the JSF?
Thanks & Regards,
Alexander
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085490#4085490
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085490
18 years, 10 months