On 10/26/06, Matthias Wessendorf <[EMAIL PROTECTED]> wrote:

Hey,

two things.

a) is this the right place to ask questions on Struts-Faces, or where ?


It's the right place for dev type questions ... the Struts User list for
user type questions :-).

if so b)

the demos of struts faces show a "portal" which uses links (done w/
JSF-components) to navigate to a tiles pages, which finally contains a
<s:form> based formular. that is the key... ActionForm/Action on the
java side and JSF comp.s on the page side.

Every thing works. A form-submit sends a req. to the action

So far so good...

When I am converting one of my own apps w/ struts-faces I'd like to
stay with <html:link> for linking to form pages (that are using
<s:form>). But ...


In other words, you want to use the Struts <html:link> tag in a form
surrounded by the JSF <s:form> component?  That's very likely not going to
work reliably.  You should stick to one technology or the other for all of
your view tier tags on any particular page -- either the Struts HTML tags or
the appropriate JSF component tags.  You are only scratching the surface of
a lot of problems that will show up trying to mix them.

Craig

since that is a GET request the form renders html like

<form name="fooForm" action="/blub/tilesMasterLayout.do" ...>


(only when using GET / html:link)

so ... a submit causes a 404. Not wondering :)

When I use firebug to change the action attr value to
/blub/tilesMasterLayout.faces every thing works. Action is called.


The action() method in FormRenderer returns in the wrong szenario a .do
URL
I think it is not to bad to check agains a struts pattern in that URL
and replace that .do
(if needed) with the jsf pattern (like .faces or add /faces/)

I think this is valid, because the form renders already fine, which
ensures you are inside the FacesContext ...

If you all agree, I'd like to provide the patch for that.

Greetz,
Matt


--
Matthias Wessendorf
http://tinyurl.com/fmywh

further stuff:
blog: http://jroller.com/page/mwessendorf
mail: mwessendorf-at-gmail-dot-com

Reply via email to