[jboss-user] [JBoss Seam] - Re: EL Enhancements

2007-06-20 Thread [EMAIL PROTECTED]
Post the stack trace. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056238#4056238 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056238 ___ jboss-user mailing list jboss-use

[jboss-user] [JBoss Seam] - Re: EL enhancements in Seam 1.2.1

2007-05-09 Thread neoko
I've already tried what i was planning to do, and yeah, it works! Now, I understand the previous posts. It's needed an object in the scope of the conversation in order to evaluate the argument of the expression. Thanks! All of you, the staff of JBoss are very helpful. View the original post : h

[jboss-user] [JBoss Seam] - Re: EL enhancements in Seam 1.2.1

2007-05-09 Thread neoko
Thanks! Let me ask you another question related to the last one: What about if I don't have a dataTable? In other pages I have links like this one: | | | | | which is trying to access other page with the information of an existing entityBean. I achieve

[jboss-user] [JBoss Seam] - Re: EL enhancements in Seam 1.2.1

2007-05-09 Thread [EMAIL PROTECTED]
In other words, and as the documentation says, what you just wrote is equivalent to this: | | @In("#{pp.di}") | Long projectPlanId; | | public String edit() { | ... | } | That also doesn't work because at call time of edit(), no #{pp.id} can be resolved - pp is just the

[jboss-user] [JBoss Seam] - Re: EL enhancements in Seam 1.2.1

2007-05-09 Thread [EMAIL PROTECTED]
This is not how doStuff(argument) works. What you are trying to do is a common error. Think about when #{projectPlanHome.edit(pp.id)} will be evaluated: During rendering of the page. However, if you check the source of the rendered HTML, you will see that pp.id has not been replaced with a val

[jboss-user] [JBoss Seam] - Re: EL Enhancements dont work in facelets tag file

2007-04-03 Thread mgrouch
If you want to use action binding passed as parameter in facelets here is the article how to do that http://andrewfacelets.blogspot.com/2006/06/creating-composite-controls-with-jsf.html --MG View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4034036#4034036 Rep

[jboss-user] [JBoss Seam] - Re: EL Enhancements dont work in facelets tag file

2007-04-02 Thread mbolcina
Anyone understands suggested workaround by Andrew Wheeler in bug comments? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033890#4033890 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033890 ___

[jboss-user] [JBoss Seam] - Re: EL Enhancements dont work in facelets tag file

2007-04-02 Thread mbolcina
I found that there is allready bug: http://jira.jboss.com/jira/browse/JBSEAM-668 View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033654#4033654 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033654 __

[jboss-user] [JBoss Seam] - Re: EL Enhancements dont work in facelets tag file

2007-04-02 Thread mbolcina
Complete stacktrace of exception: javax.faces.FacesException: Error calling action method of component with id orgUnitDetail:_id66 at org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:79) at javax.faces.component.UICommand.broadcast(UICommand

[jboss-user] [JBoss Seam] - Re: EL Enhancements dont work in facelets tag file

2007-04-02 Thread mbolcina
I am having similar problem. I am using facelets source tag: taglib.xml | | http://Test | | test | Test.xhtml | | Test.xhtml (source of test tag) | http://www.w3.org/1999/xhtml"; ...> | | testWithParam | |

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread lightbulb432
Here's the type of thing I'm trying to do. The point is that there are a list of "favorites", and within that list I want to specially mark those favorites of the logged in user. But of course, the enhanced EL expression I have in the view doesn't work. It seems like the most intuitive way to d

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread petemuir
"lightbulb432" wrote : For example, in a list of entities I'd like to show next to it the result of a query (i.e. that value isn't stored as a property of the entity, but is evaluated as a result of a query). You could use the map hack for this (look at Seam's isUserInRole) or preprocess as I m

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread petemuir
"lightbulb432" wrote : What is the recommended method of executing a query for each line in a DataModel or list of entities on a page upon each load? You can't do it like this. You would have to preprocess the list in your factory method. Normally you can avoid doing this by getting the datamo

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread lightbulb432
Right, but that would only be evaluated when I click the link, whereas I would like the value to be shown when the list page is shown. For example, in a list of entities I'd like to show next to it the result of a query (i.e. that value isn't stored as a property of the entity, but is evaluated

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread baz
You wrote anonymous wrote : tried to use #{entityHome.myMethod(var)} as plain text So your el uses value binding. When you want to really call a method you have to use a button or link where you have an action or actionlistener attribute. For example: s:link action="#{entityHome.myMethod(var)}"

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread lightbulb432
What is the recommended method of executing a query for each line in a DataModel or list of entities on a page upon each load? I was thinking I could pass in the loop variable to a method that would go and execute a query. Since that's not possible, what should I do - I know how to use DataMode

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread petemuir
As mentioned in the docs you can only use the EL enhancement on method bindings, not value bindings (i.e. a get/is/set) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4019243#4019243 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mod

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-02-20 Thread lightbulb432
Below is the log of the exception. Also, I have the following in my faces-config.xml: | ... | org.jboss.seam.ui.facelet.SeamFaceletViewHandler | javax.el.ELException: Error Parsing: #{compHome.done(x.id)} | at com.sun.el.lang.ExpressionBuilder.createNodeInternal(E

[jboss-user] [JBoss Seam] - Re: EL enhancements

2007-01-05 Thread [EMAIL PROTECTED]
It is only for invocations, as far as I know. You can, however, create your own EL functions to deal with the type of thing you want to do. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3998369#3998369 Reply to the post : http://www.jboss.com/index.html?mod