You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Robert Alexandersson (JIRA)" <de...@myfaces.apache.org> on 2005/11/11 10:13:03 UTC

[jira] Created: (MYFACES-812) selectItems is created using a very static method so almost no styles can be added, is it possible to create a more flexible solution

selectItems is created using a very static method so almost no styles can be added, is it possible to create a more flexible solution
-------------------------------------------------------------------------------------------------------------------------------------

         Key: MYFACES-812
         URL: http://issues.apache.org/jira/browse/MYFACES-812
     Project: MyFaces
        Type: Improvement
  Components: Tomahawk  
 Environment: MyFaces 1.1.1
    Reporter: Robert Alexandersson
    Priority: Trivial


The exampel html code that shuld be translated to MyFaces code

HTML
<table Id="TABLE-LISTINGS" width="100%" border="0" cellspacing="0" cellpadding="3">
  <tr>
    <td width="96%" class="ListingRow1"> The Title  </td>
    <td class="iconColumn" style="padding-top:5px;"><input disabled name="checkbox" type="checkbox" value="checkbox" checked></td>
  </tr>
</table>

JSF
<x:selectManyCheckbox enabledClass="iconLabel" disabledClass="iconLabel" required="false" id="newsFlows" layout="pageDirection" value="#{newsFlowBean.selectedNewsFlows}" >
  <f:selectItems id="myComp" value="#{newsFlowBean.newsFlows}" />
</x:selectManyCheckbox>


I wich for 2 improvements in the renderer logic of eather <f:selectItems> or <x:select*>, dont know how this shuld be done, the developer propably do?

1. To set render tecnique, example, layoutRender="table, label, list". Table would create the look of my HTML exampel above.
2. To set on which side of the input the title/label should be rendered, example, labelTextAlign="left, right"



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira