[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-326) Dynamic view-id in Pageflow
by Alexander Koroloff (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-326?page=comments#action_12384101 ]
Alexander Koroloff commented on JBSEAM-326:
-------------------------------------------
Yes, it works for me since Seam 1.2.1. I've just watched, how it implemented in the same class for different property, and do it that way ;)
I think it's not our task, to take care about additional overhead, it must be a part of the Interpolator logic.
> Dynamic view-id in Pageflow
> ---------------------------
>
> Key: JBSEAM-326
> URL: http://jira.jboss.com/jira/browse/JBSEAM-326
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: BPM
> Affects Versions: 1.1.0.BETA1
> Environment: seam cvs as of 8/2/2006
> Reporter: John Conner
> Assigned To: Pete Muir
> Fix For: 2.0.1.GA
>
> Attachments: jbseam-326.diff, pageflow-dynamic-view-id, pageflow-dynamic-view-id
>
>
> I have a need where I would like to have an el expression in the view-id of a pageflow. I've looked a bit at themes; and while I might be able to do what I want by replacing the template.xhtml dynamically, I don't (at least initial) like indirection.
> I believe the patch for this functionality is reletively trivial. Altough, I very well could have missed something. Basically, I modified the Page.getViewId() method to evaulate the value returned and replace any el expressions.
> I also modified the Number Guess example to use this feature.
> I have attached an initial patch as a proof of concept if it is of any interest to the Seam developers.
> -- JC
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 2 months
[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-326) Dynamic view-id in Pageflow
by John Conner (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-326?page=comments#action_12384098 ]
John Conner commented on JBSEAM-326:
------------------------------------
Alexandar,
Does your patch work with the following:
view-id="#{numberGuess.directory}/lose.jsp"
I haven't looked at this in a while, so it very well does. I remember trying to not have additional overhead in the Interpolator if there were not any el expressions. Anyway, your patch is much shorter code and I would be just as happy if that got applied assuming it works with the view-id example above.
> Dynamic view-id in Pageflow
> ---------------------------
>
> Key: JBSEAM-326
> URL: http://jira.jboss.com/jira/browse/JBSEAM-326
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: BPM
> Affects Versions: 1.1.0.BETA1
> Environment: seam cvs as of 8/2/2006
> Reporter: John Conner
> Assigned To: Pete Muir
> Fix For: 2.0.1.GA
>
> Attachments: jbseam-326.diff, pageflow-dynamic-view-id, pageflow-dynamic-view-id
>
>
> I have a need where I would like to have an el expression in the view-id of a pageflow. I've looked a bit at themes; and while I might be able to do what I want by replacing the template.xhtml dynamically, I don't (at least initial) like indirection.
> I believe the patch for this functionality is reletively trivial. Altough, I very well could have missed something. Basically, I modified the Page.getViewId() method to evaulate the value returned and replace any el expressions.
> I also modified the Number Guess example to use this feature.
> I have attached an initial patch as a proof of concept if it is of any interest to the Seam developers.
> -- JC
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 2 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2147) seam-gen: maven artifacts required with "mavenized=false"
by Joachim Neubert (JIRA)
seam-gen: maven artifacts required with "mavenized=false"
----------------------------------------------------------
Key: JBSEAM-2147
URL: http://jira.jboss.com/jira/browse/JBSEAM-2147
Project: JBoss Seam
Issue Type: Bug
Affects Versions: 2.0.0.CR2
Reporter: Joachim Neubert
seam-gen tries to download some maven artifacts and the build fails, because this does not work. (Maybe it does not understand the existing %http_proxy% setting, but, in my opinon, maven artifacts should not be required at all).
C:\Programme\jboss-seam-2.0.0.CR2>type build.properties
#Fri Oct 05 09:27:11 CDT 2007
mavenized=false
jboss.home=c\:/programme/jboss-4.2.1.GA
C:\Programme\jboss-seam-2.0.0.CR2>seam setup
Buildfile: C:\Programme\jboss-seam-2.0.0.CR2\seam-gen\build.xml
init:
[artifact:dependencies] Downloading: org/jboss/seam/jboss-seam-gen/2.0.0.CR2/jboss-seam-gen-2.0.0.CR2.pom
[artifact:dependencies] Downloading: org/jboss/seam/jboss-seam-gen/2.0.0.CR2/jboss-seam-gen-2.0.0.CR2.jar
[artifact:dependencies] An error has occurred while processing the Maven artifact tasks.
[artifact:dependencies] Diagnosis:
[artifact:dependencies]
[artifact:dependencies] Unable to resolve artifact: Missing:
[artifact:dependencies] ----------
[artifact:dependencies] 1) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
[artifact:dependencies]
[artifact:dependencies] Try downloading the file manually from the project web
site.
[artifact:dependencies]
[artifact:dependencies] Then, install it using the command:
[artifact:dependencies] mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen \
[artifact:dependencies] -Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file
[artifact:dependencies] Alternatively, if you host your own repository you can deploy the file there: mvn deploy:deploy-file -DgroupId=org.jboss.seam -Dar
tifactId=jboss-seam-gen \
[artifact:dependencies] -Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file \
[artifact:dependencies] -Durl=[url] -DrepositoryId=[id]
[artifact:dependencies]
[artifact:dependencies] Path to dependency:
[artifact:dependencies] 1) unspecified:unspecified:jar:0.0
[artifact:dependencies] 2) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
[artifact:dependencies]
[artifact:dependencies] ----------
[artifact:dependencies] 1 required artifact is missing.
[artifact:dependencies]
[artifact:dependencies] for artifact:
[artifact:dependencies] unspecified:unspecified:jar:0.0
[artifact:dependencies]
[artifact:dependencies] from the specified remote repositories:
[artifact:dependencies] central (http://repo1.maven.org/maven2)
[artifact:dependencies]
[artifact:dependencies]
BUILD FAILED
C:\Programme\jboss-seam-2.0.0.CR2\seam-gen\build.xml:14: Unable to resolve artif
act: Missing:
----------
1) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
Try downloading the file manually from the project website.
Then, install it using the command:
mvn install:install-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-
gen \
-Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file
Alternatively, if you host your own repository you can deploy the file there:
mvn deploy:deploy-file -DgroupId=org.jboss.seam -DartifactId=jboss-seam-gen
\
-Dversion=2.0.0.CR2 -Dpackaging=jar -Dfile=/path/to/file \
-Durl=[url] -DrepositoryId=[id]
Path to dependency:
1) unspecified:unspecified:jar:0.0
2) org.jboss.seam:jboss-seam-gen:jar:2.0.0.CR2
----------
1 required artifact is missing.
for artifact:
unspecified:unspecified:jar:0.0
from the specified remote repositories:
central (http://repo1.maven.org/maven2)
Total time: 3 seconds
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 2 months
[jbossseam-issues] [JBoss JIRA] Updated: (JBSEAM-326) Dynamic view-id in Pageflow
by Alexander Koroloff (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-326?page=all ]
Alexander Koroloff updated JBSEAM-326:
--------------------------------------
Attachment: jbseam-326.diff
using Interpolator to evaluate viewId
> Dynamic view-id in Pageflow
> ---------------------------
>
> Key: JBSEAM-326
> URL: http://jira.jboss.com/jira/browse/JBSEAM-326
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: BPM
> Affects Versions: 1.1.0.BETA1
> Environment: seam cvs as of 8/2/2006
> Reporter: John Conner
> Assigned To: Pete Muir
> Fix For: 2.0.1.GA
>
> Attachments: jbseam-326.diff, pageflow-dynamic-view-id, pageflow-dynamic-view-id
>
>
> I have a need where I would like to have an el expression in the view-id of a pageflow. I've looked a bit at themes; and while I might be able to do what I want by replacing the template.xhtml dynamically, I don't (at least initial) like indirection.
> I believe the patch for this functionality is reletively trivial. Altough, I very well could have missed something. Basically, I modified the Page.getViewId() method to evaulate the value returned and replace any el expressions.
> I also modified the Number Guess example to use this feature.
> I have attached an initial patch as a proof of concept if it is of any interest to the Seam developers.
> -- JC
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 2 months
[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-326) Dynamic view-id in Pageflow
by Alexander Koroloff (JIRA)
[ http://jira.jboss.com/jira/browse/JBSEAM-326?page=comments#action_12384064 ]
Alexander Koroloff commented on JBSEAM-326:
-------------------------------------------
We have done it much simplier, by one line. See attached jbseam-326.diff
> Dynamic view-id in Pageflow
> ---------------------------
>
> Key: JBSEAM-326
> URL: http://jira.jboss.com/jira/browse/JBSEAM-326
> Project: JBoss Seam
> Issue Type: Feature Request
> Components: BPM
> Affects Versions: 1.1.0.BETA1
> Environment: seam cvs as of 8/2/2006
> Reporter: John Conner
> Assigned To: Pete Muir
> Fix For: 2.0.1.GA
>
> Attachments: pageflow-dynamic-view-id, pageflow-dynamic-view-id
>
>
> I have a need where I would like to have an el expression in the view-id of a pageflow. I've looked a bit at themes; and while I might be able to do what I want by replacing the template.xhtml dynamically, I don't (at least initial) like indirection.
> I believe the patch for this functionality is reletively trivial. Altough, I very well could have missed something. Basically, I modified the Page.getViewId() method to evaulate the value returned and replace any el expressions.
> I also modified the Number Guess example to use this feature.
> I have attached an initial patch as a proof of concept if it is of any interest to the Seam developers.
> -- JC
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 2 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2138) SeamTest has changed it's exception handling behavior
by Max Andersen (JIRA)
SeamTest has changed it's exception handling behavior
-----------------------------------------------------
Key: JBSEAM-2138
URL: http://jira.jboss.com/jira/browse/JBSEAM-2138
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0.CR2
Reporter: Max Andersen
Assigned To: Norman Richards
Priority: Critical
Fix For: 2.0.0.GA
This passes with no errors in Seam 2:
public class PingTest extends SeamTest {
@Test
public void test() throws Exception {
new FacesRequest() {
@Override
protected void invokeApplication() {
//call action methods here
Object o = invokeMethod("#{ping.thisShouldDefinitlyNotPass}");
assertNotNull(o);
}
}.run();
System.out.println("We passed all tests!");
}
}
Seam 1 gives me:
javax.el.MethodNotFoundException: Method not found: org.domain.s1.session.Plong(a)392814.plongsdff()
at com.sun.el.util.ReflectionUtil.getMethod(ReflectionUtil.java:143)
at com.sun.el.parser.AstValue.invoke(AstValue.java:171)
at com.sun.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:286)
at org.jboss.seam.util.UnifiedELMethodBinding.invoke(UnifiedELMethodBinding.java:36)
at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
at org.jboss.seam.actionparam.ActionParamBindingHelper.invokeTheExpression(ActionParamBindingHelper.java:58)
at org.jboss.seam.actionparam.ActionParamMethodBinding.invoke(ActionParamMethodBinding.java:75)
at org.jboss.seam.mock.SeamTest$Request.invokeMethod(SeamTest.java:401)
at org.domain.s1.test.PlongTest$1.invokeApplication(PlongTest.java:18)
at org.jboss.seam.mock.SeamTest$Request.run(SeamTest.java:489)
at org.domain.s1.test.PlongTest.test(PlongTest.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:604)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:470)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:564)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:830)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:125)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:109)
at org.testng.TestRunner.runWorkers(TestRunner.java:678)
at org.testng.TestRunner.privateRun(TestRunner.java:624)
This change will make tests that has a buggy el expression light up green - that's bad.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 2 months
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1631) add @PageAction annotation to method
by Dan Allen (JIRA)
add @PageAction annotation to method
------------------------------------
Key: JBSEAM-1631
URL: http://jira.jboss.com/jira/browse/JBSEAM-1631
Project: JBoss Seam
Issue Type: Feature Request
Components: Tools
Affects Versions: 2.0.0.BETA1
Reporter: Dan Allen
I cannot help but to conclude that a page action ought to be able to be declared as an annotation on a method. Why not? It is very similar to a @WebRemote method in a sense. It would also eliminate the need for the XML file if you prefer to return view ids directly in the action handler methods. Think about the love Seam would get by removing the dependency on the XML for this feature. No XMLHell, remember?
The way it would work is that when Seam spots the annotation during initialization time, it just registers that method with the Page framework just as if it had found it in the XML file.
I wouldn't be broken-hearted if this is rejected, but it seems consistent with the goals of Seam.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
17 years, 2 months