[ http://issues.apache.org/struts/browse/STR-2496?page=all ]
     
Niall Pemberton resolved STR-2496:
----------------------------------

    Fix Version: 1.3.5
     Resolution: Fixed
      Assign To: Niall Pemberton  (was: Struts Developers)

Thanks, fixed in revision 410187

Changed to use <s:commandLink> as per your suggestion and seem to now work 
fine. I didn't get the second problem you describe (the action is rendering as 
"layout.faces" rather than "layout.do") so it looks like that issue is already 
resolved.

> [struts-faces] Example applications don't work?!
> ------------------------------------------------
>
>          Key: STR-2496
>          URL: http://issues.apache.org/struts/browse/STR-2496
>      Project: Struts Action 1
>         Type: Bug

>   Components: Faces
>     Versions: Unknown
>  Environment: Operating System: Windows 2000
> Platform: PC
>     Reporter: MarioK
>     Assignee: Niall Pemberton
>      Fix For: 1.3.5

>
> Dear all,
> I downloaded the latest nightly build, but I was unable to successfully deploy
> and execute the second example application on Tomcat 5.0.28.  
> Deployment causes no errors,  but when clicking on any of the 2 links
> ("Register"/"Login") of the first page, I get the following javascript error:
> "Error: 'document.forms.menu:_id7.menu:_id7:_idcl' is null or not an object".
> My guess was that the <h:commandLink> tags for these links (in loggedoff.jsp)
> should be replaced by <s:commandLink>. I tried fixing that, and it worked, but
> then I get an inexplicable http 404 error: “Invalid path /layout was 
> requested”
> when I click on any of the two links.
> Looking at the source code of both JSP and HTML I noticed that the JSP element
> <s:form action="/editRegistration"> renders itself as <form id="menu:_id5"
> name="registrationForm" action="/StrutsFacesExample/layout.do" 
> method="post">. I
> might be missing out on something here, but it seems to me the action element 
> is
> (?) wrong: there is no layout.do action mapping anywhere, it’s the path 
> pointing
> to the main layout jsp with the suffix replaced.
> I have also tried deploying the example on Tomcat 5.5.7 and JBoss 3.2.5, but 
> the
> behavior was exactly the same. 
> Can anyone else confirm this?
> Mario

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira

Reply via email to