Closed GoogleCodeExporter closed 9 years ago
It's been decided that the best solution for Seam integration is to provide path
parameters in the Request Parameter map (as in PF 2.0.4), in order to enable
use of
the @RequestParameter Seam annotation injection.
Original comment by lincolnb...@gmail.com
on 30 Mar 2010 at 4:39
Fixed in 1.2.7-SNAPSHOT - please test.
Original comment by lincolnb...@gmail.com
on 19 Apr 2010 at 9:23
Is 1.2.7-SNAPSHOT available in the repo?
Original comment by agusguti...@gmail.com
on 18 May 2010 at 7:12
Err, not anymore, sorry -- we've mixed things up a little bit ;)
Here is the new dependency:
<dependency>
<groupId>com.ocpsoft</groupId>
<artifactId>prettyfaces-jsf12</artifactId>
<version>3.0.0</version>
</dependency>
or for JSF2
<dependency>
<groupId>com.ocpsoft</groupId>
<artifactId>prettyfaces-jsf2</artifactId>
<version>3.0.0</version>
</dependency>
Original comment by lincolnb...@gmail.com
on 18 May 2010 at 10:13
Lincoln, I'm getting this exception:
org.xml.sax.SAXException: Error Handling
[jar:file:/C:/Users/agustin/workspace/ex/.metadata/.plugins/org.eclipse.wst.serv
er.co
re/tmp1/wtpwebapps/learnvest/WEB-INF/lib/prettyfaces-jsf12-3.0.0.jar!/META-
INF/ocpsoft-pretty-faces.taglib.xml@6,28]
I'm using PrettyFaces 3.0.0 for JSF1.2, JSF 1.2_13 and Seam 2.1.1.GA. What do
you
think about it?.
Thanks in advance
Original comment by agusguti...@gmail.com
on 19 May 2010 at 2:15
Uh oh, what application server are you using? I'll try to reproduce this,
but... is
this halting your deployment? It may just be a warning.
Original comment by lincolnb...@gmail.com
on 19 May 2010 at 2:22
Tomcat 6.0.26. App and PrettyFaces seems to works ok,
I won't be able to use the prettyfaces components in the pages, actually the
conf that
i've put in the pretty-config is working well.
Original comment by agusguti...@gmail.com
on 19 May 2010 at 2:48
Yep, I reproduced the issue and released a fixed version. Someone included the
wrong
taglib for that version of JSF.
Until it syncs to maven central, You can get version 3.0.1 from this repository.
<repositories>
<repository>
<id>ocpsoft</id>
<name>OcpSoft Releases</name>
<url>http://ocpsoft.com/repository/</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
Original comment by lincolnb...@gmail.com
on 19 May 2010 at 3:32
Thanks, I will try that new version.
I have another problem. Injection seems that doesn't work in 3.0.0. I'm getting
attached exception.
Original comment by agusguti...@gmail.com
on 19 May 2010 at 3:50
Attachments:
Injection into Seam beans is not supported, however, the correct solution is to
name
the parameter:
<url-mapping>
<pattern value="/pages/#{ parameterName }" />
</...>
Then use Seam's @RequestParameter:
@RequestParameter
private String parameterName;
Original comment by lincolnb...@gmail.com
on 19 May 2010 at 3:56
So to make myself clear:
<url-mapping>
<pattern value="/pages/#{parameterName}" />
<view-id>/pages/foo/fooDisplay.seam</view-id>
<action>#{foo.actionMethod}</action>
</urlmapping>
@Name("fop")
@Scope(ScopeType.CONVERSATION)
public class Foo {
@RequestParameter
String parameterName;
public String getParameterName() {
return this.parameterName;
}
public void setParameterName(String parameterName) {
this.parameterName = parameterName;
}
}
That was not working for me. Also "query-param" doesn't work. Is that the right
behaviour?
May I help you developing these stuff?
Original comment by agusguti...@gmail.com
on 19 May 2010 at 7:31
Yes, I could definitely use your help.
What you've shown me should be working. Could you send me a sample project that
reproduces this? That would help a lot :) Otherwise, if you wanted to just
figure out
why it's not working, that would help even more ;)
Either way, I'd love to see a project that reproduces it. It would help me
understand
better.
Original comment by lincolnb...@gmail.com
on 20 May 2010 at 4:51
Yes, I could definitely use your help.
What you've shown me should be working. Could you send me a sample project that
reproduces this? That would help a lot :) Otherwise, if you wanted to just
figure out
why it's not working, that would help even more ;)
Either way, I'd love to see a project that reproduces it. It would help me
understand
better.
Original comment by lincolnb...@gmail.com
on 20 May 2010 at 4:51
Could you please post your web.xml? I believe I know why it's not working. If
Seam's
ContextFilter is *before* PrettyFilter in the chain, this won't work; if so,
place
PrettyFilter *before* ContextFilter, and try again.
--Lincoln
Original comment by lincolnb...@gmail.com
on 20 May 2010 at 4:56
Closing.
Original comment by lincolnb...@gmail.com
on 24 Jul 2010 at 2:57
Original issue reported on code.google.com by
lincolnb...@gmail.com
on 18 Feb 2010 at 4:41