neharob / prettyfaces

Automatically exported from code.google.com/p/prettyfaces
0 stars 0 forks source link

Submit action skipped all phases. Only process only restore view and render phases #127

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
NOTE: For fastest resolution when reporting an issue, please provide attach
example project or file *with sources* that reproduces the problem.

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of PrettyFaces are you using? On what server and version,
version of JSF, and other relevant technologies?

Please provide any additional information below.

Original issue reported on code.google.com by bernard...@gmail.com on 22 Feb 2012 at 7:06

GoogleCodeExporter commented 9 years ago
Could you please give a more detailed description of this issue. You could use 
the reporting template as you see it in the bug description.

Original comment by chkalt on 22 Feb 2012 at 7:58

GoogleCodeExporter commented 9 years ago
This is what I set in web.xml.  No more other filter.
    <filter>
      <filter-name>Pretty Filter</filter-name>
      <filter-class>com.ocpsoft.pretty.PrettyFilter</filter-class>
      <async-supported>true</async-supported>
    </filter>
    <filter-mapping>
      <filter-name>Pretty Filter</filter-name>
      <url-pattern>/*</url-pattern>
      <dispatcher>REQUEST</dispatcher>
      <dispatcher>FORWARD</dispatcher>
      <dispatcher>ASYNC</dispatcher>
      <dispatcher>ERROR</dispatcher>
    </filter-mapping>

Here is the only entry in pretty-config.xml

    <url-mapping id="login"> 
        <pattern value="/login" /> 
        <view-id value="/login.jsf" />
    </url-mapping> 

1. I do request /login, the page loaded.
2. Input user ID / password to process login
3. Click submit then

I expect it will invoke all the JSF phases.  The application phase will query 
database and validate login.
But the result is even Submit (POST), it invokes only RESTORE_VIEW and 
RENDER_RESPONSE phases.  Acts same as GET request.

Thanks,
Bernard.

Original comment by bernard...@gmail.com on 22 Feb 2012 at 8:29

GoogleCodeExporter commented 9 years ago
Does it work if you bypass PrettyFaces by accessing "/login.jsf" directly?

Original comment by chkalt on 22 Feb 2012 at 8:40

GoogleCodeExporter commented 9 years ago
Hi, 
Yes, it does.

Original comment by bernard...@gmail.com on 22 Feb 2012 at 8:42

GoogleCodeExporter commented 9 years ago
Could you please provide a minimal sample application that reproduces this 
issue? This have to be some kind of configuration issue. This is working fine 
in every of my applications and you are the first person reporting this. We 
definitively need more details to help you here. Like the container you are 
using, the JSF implementation and version of the implementation.

Would you mind moving this to the forums?

http://ocpsoft.org/support/

Christian

Original comment by chkalt on 22 Feb 2012 at 9:00

GoogleCodeExporter commented 9 years ago
Also please include the XHTML code for your login page. Thank you.

Original comment by lincolnb...@gmail.com on 22 Feb 2012 at 11:51

GoogleCodeExporter commented 9 years ago
We have moved the project to GitHub.

If this issue is still relevant, please reopen it here:

https://github.com/ocpsoft/prettyfaces/issues

Original comment by chkalt on 7 Mar 2012 at 6:18