myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Robinson" <andrew.rw.robin...@gmail.com>
Subject Re: Prevent MyFaces to autogen _idxx
Date Fri, 09 Feb 2007 16:46:55 GMT
Make sure that you don't have any naming containers that don't have an
ID assigned. "_id\d{1,}" patterns are generated for all components
that aren't given an ID in the xhtml/jsp files.

On 2/9/07, Steve Torrefranca <storrefranca@branders.com> wrote:
> How do we prevent MyFaces(tomahawk 1.1.5-SNAP) from adding a _idXX in
> between the form name and field id?
>
> Like this:
> <t:commandButton id="submit" value="Submit"
> action="#{spendReportingBean.generateReport}" />
>
> Will render:
>
> <input *id**=**"_formPage:_id1031:submit"* name="_formPage:_id1031:submit"
> type="submit" value="Submit" onclick="if(typeof window.clearFormHiddenParams__formPage!
> ='undefined'){clearFormHiddenParams__formPage('_formPage');}if(typeof window.getScrolling!
> ='undefined'){oamSetHiddenInput('_formPage','autoScroll',getScrolling());}" />
>
> Thank you
>
> -- Steve
>

Mime
View raw message