[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error
Hi, is it possible, you are getting some where an uncaught exception (i would say null pointer) and seam interceptor rolls back the transaction? In the next step your page will rerender and touch a really null (or corrupt) objects. Gena View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057164#4057164 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057164 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error
I must say, finally, that petemuir's version was correct : anonymous wrote : ajax4jsf namespace isn't being resolved correctly The problem is solved now, thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4057198#4057198 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4057198 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error
Is that the whole exception? Use your debugger and break on ELException. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055672#4055672 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055672 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error
"petemuir" wrote : Is that the whole exception? Use your debugger and break on ELException. Yes, that's the whole exception. I am not yet experienced enough with Eclipse IDE to use debugger with JBoss. I will try to master it ASAP, but exception trace must be more informative. The good style of programming is when top-message of stack trace explains what is wrong, exactly. "find" is a method of SFSB annotated as Seam component. Other methods of this component are successfully invokable from web-page (I checked that by commenting calls to "find"), so component itself is visible. And it seems weird to me that "find" is called "property" in error message . View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055687#4055687 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055687 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error
Ah, thats the clue :) Post the bean and the xhtml. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055691#4055691 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055691 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error
The bean (quite similar to "HotelSearchAction in booking example"): import java.util.List; | import javax.ejb.Remove; | import javax.ejb.Stateful; | import javax.persistence.EntityManager; | import javax.persistence.PersistenceContext; | import org.jboss.seam.ScopeType; | import org.jboss.seam.annotations.Destroy; | import org.jboss.seam.annotations.Factory; | import org.jboss.seam.annotations.Name; | import org.jboss.seam.annotations.Scope; | import org.jboss.seam.annotations.datamodel.DataModel; | import org.jboss.seam.annotations.security.Restrict; | | @Stateful | @Name("partSearch") | @Scope(ScopeType.SESSION) | //@Restrict("#{identity.loggedIn}") | public class PartSearchAction implements PartSearch | { | | @PersistenceContext | private EntityManager em; | | private String searchString; | private int pageSize = 10; | private int page; | | @DataModel | private List parts; | | //- | // | | private void doSearch() | { | parts = em.createQuery("select p from PartCMP p where partnumber like #{pattern}") |.setMaxResults(pageSize) |.setFirstResult( page * pageSize ) |.getResultList(); | } | | //- | // | public void findParts() | { | page = 0; | doSearch(); | //return("main"); | } | | //- | // | public int getPageSize() | { | return(pageSize); | } | | //- | // | public String getSearchString() | { | return(searchString); | } | | //- | // | public boolean isNextPageAvailable() | { | return(parts!=null && parts.size()==pageSize); | } | //- | // | public void nextPage() | { | page++; | doSearch(); | } | //- | // | public void setPageSize(int pageSize) | { | this.pageSize = pageSize; | } | | //- | // | public void setSearchString(String searchString) | { | this.searchString = searchString; | } | | //- | // | @Factory(value="pattern", scope=ScopeType.EVENT) | public String getSearchPattern() | { | return(searchString==null ? "%" : '%' + searchString.toLowerCase().replace('*', '%') + '%'); | } | | //- | // | @Destroy @Remove | public void destroy() | {} | | } | xhtml form : | | | | | | | | | | | |Maximum results: | | | | | | | | When I comment the link to #{partSearch.findParts} (command button code), page is displayed fine , although calls to other partSearch methods exist in this page. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055700#4055700 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055700 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error
P.S. I renamed method name to findParts, so the Exception message is now javax.el.ELException: /main.xhtml: Bean: org.javassist.tmp.java.lang.Object_$$_javassist_48, propert | y: findParts View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055701#4055701 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055701 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error
It looks to me like the ajax4jsf namespace isn't being resolved correctly. Does it work as a h:commandButton? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055709#4055709 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055709 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error
"petemuir" wrote : It looks to me like the ajax4jsf namespace isn't being resolved correctly. Does it work as a h:commandButton? Unfortunately, not. Thank you for trying to help. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055722#4055722 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055722 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error
Is your findPart method declared in the PartSearch interface ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055723#4055723 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055723 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JBoss Seam] - Re: javax.el.ELException , unable to localize the error
"ChristopheA" wrote : Is your findPart method declared in the PartSearch interface ? | Yes @Local | public interface PartSearch | { | public int getPageSize(); | public void setPageSize(int pageSize); | | public String getSearchString(); | public void setSearchString(String searchString); | public String getSearchPattern(); | | public void findParts(); | public void nextPage(); | public boolean isNextPageAvailable(); | | public void destroy(); | | | } | I've just played a bit with (un)commenting references to partSearch component in xhtml page. Interesting results : action="#{partSearch.findParts}" - throws Exception actionListener="#{partSearch.findParts}" - throws Exception value="#{partSearch.pageSize} - works action="#{partSearch.nextPage}" - throws Exception rendered="#{partSearch.nextPageAvailable}" - works Looks like property-invoking methods works but action-methods of type void does not work. Any ideas ? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055789#4055789 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4055789 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user