-
1. Re: s:decorate vs ui:decorate - different behavior for multi
gavin.king Jun 27, 2007 6:45 PM (in response to asavitsky)s:decorate renders a span around its content. The reason for this was to get an id that Ajax4JSF can use to re-render the whole decoration.
But I did not really consider how that would affect h:panelGrid.
Annoying.
Raise an issue in JIRA, if you like.... -
2. Re: s:decorate vs ui:decorate - different behavior for multi
pmuir Jun 27, 2007 7:20 PM (in response to asavitsky)Yes, h:panelGrid looks at it's lays out each of it's children according to columns attribute. Simply, ui:decorate add's all of its children directly to it's parent BUT s:decorate is a component in it's own right, so keeps it's children. There is nothing we can do about this, and keep the span AFAICS.
Anyway, using a panelGrid with s:decorate isn't very useful IMO. -
3. Re: s:decorate vs ui:decorate - different behavior for multi
asavitsky Jun 28, 2007 9:15 AM (in response to asavitsky)Judging by what Pete said, it doesn't look there are many chances for this one to be fixed, but I opened a JIRA anyway, just in case...
http://jira.jboss.org/jira/browse/JBSEAM-1572
Thanks,
Alex -
4. Re: s:decorate vs ui:decorate - different behavior for multi
asavitsky Jun 28, 2007 9:47 AM (in response to asavitsky)One idea on how this might be fixed - allow s:decorate to take "for" attribute, that would be used to identify the input field, if one is not provided within the tag body. That way, users can decorate the label without the field (most common case in forms, IMO) without losing the ability to AJAXify the thing.