hello,
I have a strange problem with the seam EL that I didn't had with version 1.2.1 GA .
Now I moved from 1.2.1 to 2.0.0GA.
The problem is that if I pass a parameter like #{searcher.searchByCreator(c)} the function
is getting called in my bean searchBean.searchByCreator(String creator) but the value of
String creator is empty (not null). Parm. c is not empty because it gets printed on the
screen.
Where can I look for failures or what did I do wrong, because I don't get any strange
debug messages or any error messages.
thank you
best regards.
V.
| <div id="center">
| <h:messages globalOnly="true" styleClass="message" />
|
| <h:form id="search_Form">
| <h:inputText id="value" required="false"
value="#{searcher.searchString}" style=" width : 300px; "/>
| <h:commandButton id="search" value="search"
action="#{searcher.search}" style="width : 50px; "/>
| </h:form>
|
| <!-- RESULT LIST -->
|
| <h:dataTable id="DT_docs" var="docResult"
value="#{docs}">
| <h:column id="Column_docs">
|
| <h:outputText value=" Creator: " rendered="#{not empty
docResult.doc.creator}" />
| <h:dataTable id="DT_creator" var="c"
value="#{docResult.doc.creator}">
| <h:column id="Column_creator">
| <h:form id="Form_creator" styleClass="subText"
style="margin:auto;padding:auto; /*just for the IE*/">
| <s:link id="Link_searchByCreator" value="[#{c}],"
action="#{searcher.searchByCreator(c)}"/>
| </h:form>
| </h:column>
| </h:dataTable>
|
| </h:column>
| </h:dataTable>
|
| </div> <!-- center-->
|
My bean code looks like this
|
| @Stateful
| @Name("searcher")
| public class SearchBean implements Search, Serializable {
|
| @DataModel
| private List<SearchResult> docs = null;
|
| public void search(){
| log.info("search.search() action called " + searchString);
| docs = indexer.search(searchString);
| }
|
|
| public void searchByCreator(String creator){
| searchString = "creator:"+ creator ;
| search();
| }
|
| @Destroy
| @Remove
| public void destroy() {}
|
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4119989#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...