jsr344-experts@javaserverfaces-spec-public.java.net

[jsr344-experts] Re: [jsr344-experts mirror] Re: PRD Review and pending issues ( HTML passthrough TagDecorator )

From: Edward Burns <edward.burns_at_oracle.com>
Date: Fri, 1 Feb 2013 14:25:07 -0800

>>>>> On Fri, 1 Feb 2013 09:47:04 +0100, Frank Caputo <frank_at_frankcaputo.de> said:

EB> Consider this markup.
EB>
EB> <button jsf:outcome="#{bean.outcome1}">Button label</button>
EB>
EB> <h:button outcome="#{bean.outcome1}" value="Button label" />
EB>
EB> You would think these would render identical markup, but they do not.
EB>
EB> Instead you get.
EB>
EB> <button type="button"
EB> onclick="window.location.href='/contextpath/faces/outcome1.xhtml';
EB> return false;" value="" />
EB> Button label
EB> <input type="button"
EB> onclick="window.location.href='/contextpath/faces/outcome1.xhtml';
EB> return false;" value="Button label" />
EB> </input>
EB>
EB> </button>
EB>
EB> This is not correct. Unless I hear otherwise, I'll just do the first
EB> one, the <a>.

FC> I think, this can be done just like mapping button to
FC> h:commandButton, which is done right now. I'll have a look at this.

Please get the latest code, as I just committed those changes to make
the first case work.

I appreciate your help, as always.

Ed

-- 
| edward.burns_at_oracle.com | office: +1 407 458 0017
| homepage:               | http://ridingthecrest.com/