Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3293

Sibutu (http://code.google.com/p/sibutu/) portlet theme diff file

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.1.0
    • Fix Version/s: None
    • Component/s: "New" API, Plugin - Portlet
    • Labels:
      None
    • Environment:

      struts 2.1.0 struts2-portlet2-plugin struts2-dojo-plugin-2.1.0 sibutu portal/portlet container

    • Flags:
      Patch, Important

      Description

      Guys,

      In this issue I will attach *.diff file with all files changed to support portlet theme
      All struts GUI compinents were changed (s:xxx). So vast majority of changes are related to <s:form> and it's components

      Also new parameters support was added NOT changing struts.tld file

      1. headerWrapper (none|default|'<td><tr>') - none='', default='<td class="portlet-table-body">'
      The element wrapper will be defined as follows:
      wrapper = headerWrapper;
      if (wrapper == null)
      wrapper = defaultHeaderWrapper;
      if (wrapper == null)
      wrapper = default;
      2. footerWrapper (none|default|'</td></tr>') - none='', default='</td>'
      3. colspan
      4. rowspan
      5. labelcolspan (there's no such parameter as 'labelrowspan', labelrowspan = rowspan)
      6. labelwidth (could be defined in pixels and percents)
      7. labelalign
      8. 'labelseparator' and 'labelStyle'
      9. width

      Parameters could be used as follows:

      <s:select
      name="${paramName}" >

      <s:param name="labelseparator">
      </s:param>
      <s:param name="labelwidth" value="%

      {'20%'}" />
      <s:param name="width" value="%{'20%'}

      " />
      </s:select>

      Also some changes to struts-dojo plugin were done (I'll submit *.diff file for dojo later)

      Any questions are appreciated.

        Attachments

        1. sibutu_portlet_theme.patch
          122 kB
          Vladimir Limansky
        2. sibutu_struts_dojo_plugin.patch
          12 kB
          Vladimir Limansky

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                vlimansky Vladimir Limansky
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: