* Revision 1.3 2004/11/27 00:00:09 svieujot
* Remove the limitation to have a style or a styleClass attribute because sometimes, just a plain <div> can be useful.
So with this in mind I'm wondering if I could just use the forceId attribute to achieve a <div id="mydiv">. It looks like Jira issue MYFACES-70 (http://issues.apache.org/jira/browse/MYFACES-70) includes supprt for the forceId attribute on some of the input components. Has the forceId attribute been added to the Div component? If not, will it (or can it) be added? I wouldn't mind putting together a patch to add it with some guidance from Sean or others.
Norm Deane http://jroller.com/page/deanen
Sean Schofield wrote:
You can do <x:div class=""/>. Yeah, I consider class/id requirement to
be a bug in x:div implementation, but a minor inconvenience at most.
It'd be very easy to patch in MyFaces... I guess who is the most
bothered about it should should fix it. <x:div> approach is
generalizable and already done for the most common html tags.
I agree. Norm, maybe you could take a crack at fixing the bug yourself? People will be happy to help you if you are not sure how to build, submit a patch, etc.
Start by searching JIRA and see if this bug has been reported already. If it hasn't then go ahead and request the enhancement there. Once people agree that this is a bug/problem (which we now have), this is the next step. At a minimum someone else will fix it for you at some point.
I'd recommend trying to fix it yourself though. It is a great way to learn something about JSF. I am just learning JSF myself and looking at the MyFaces code and seeing what is going on in there helps quite a bit. Pretty soon you will be a JSF master!
Kalle
sean

