Details

    • Type: New Feature New Feature
    • Status: Closed
    • Priority: Trivial Trivial
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.1.1
    • Component/s: General
    • Labels:
      None

      Description

      There is a HTML tag fieldset, which could be very useful to create nice applications.
      Using it at the moment reuires a lot spreating of verbatim-tags.

      Her a example of the html-output:
      <pre>
      <fieldset class="fieldset">
      <legend>My Fieldset</legend>
      ....
      </fieldset>
      </pre>

      The legend is rendered as title of the groupbox.
      My suggestion of the tag will be:

      <x:fieldset title="My Fieldset>....</xfieldset>
      </textarea>

      </td>
      </tr>

      <tr><td colspan=2 bgcolor=ffffff> 
      <style>
      <!--
      .fieldLabelArea

      { width: 30%; }

      -->
      </style>
      </td></tr>
      <tr><td colspan=2 bgcolor=f0f0f0>
      <b>Comment</b>: (an optional comment describing this update)
      </td></tr>

      <tr

      >

      <td class="fieldLabelArea">

      Update comment:

      </td>

      <td bgcolor="ffffff" nowrap class="fieldValueArea">

      <textarea name="comment"
      cols="70"
      rows="4"
      wrap="virtual"

      style="width:90%"

      accesskey="m"

      >

        Activity

        Hide
        Martin Marinschek added a comment -

        This is no full solution, but a workaround: use the x:htmlTag tag - with that, you can rid of many, many verbatim tags in your app

        regards,

        Martin

        Show
        Martin Marinschek added a comment - This is no full solution, but a workaround: use the x:htmlTag tag - with that, you can rid of many, many verbatim tags in your app regards, Martin
        Hide
        Stephan Strittmatter added a comment -

        Oh, I see! This is a rather new tag, which I could not use at the moment.
        My example would be then like following, right?

        <x:htmlTag value="fieldset" styleClass="fieldset">
        <x:htmlTag value="legend" >My Fieldset</x:htmlTag>
        ...
        </x:htmlTag>

        Show
        Stephan Strittmatter added a comment - Oh, I see! This is a rather new tag, which I could not use at the moment. My example would be then like following, right? <x:htmlTag value="fieldset" styleClass="fieldset"> <x:htmlTag value="legend" >My Fieldset</x:htmlTag> ... </x:htmlTag>
        Hide
        Martin Marinschek added a comment -

        you should be able to use it with the nightly build...

        regards,

        Martin

        Show
        Martin Marinschek added a comment - you should be able to use it with the nightly build... regards, Martin
        Hide
        sean schofield added a comment -

        Personally I would prefer a new component <x:fieldSet> since the alternative is just as wordy as using <f:verbatim>. What could be simpler then just adding "x:" to your normal html? This would also allow for forceId, etc. although at the moment I'm hard pressed to find a usecase for them with fieldset.

        Show
        sean schofield added a comment - Personally I would prefer a new component <x:fieldSet> since the alternative is just as wordy as using <f:verbatim>. What could be simpler then just adding "x:" to your normal html? This would also allow for forceId, etc. although at the moment I'm hard pressed to find a usecase for them with fieldset.
        Hide
        Martin Marinschek added a comment -

        Yes of course, this would be better, if there is someone willing to implement it

        Show
        Martin Marinschek added a comment - Yes of course, this would be better, if there is someone willing to implement it
        Hide
        sean schofield added a comment -

        I'm thinking the implementation would be simliar to <f:verbatim> (except it would output the enclosing <fieldset> tags.) Or is it more complicated then that?

        Show
        sean schofield added a comment - I'm thinking the implementation would be simliar to <f:verbatim> (except it would output the enclosing <fieldset> tags.) Or is it more complicated then that?
        Hide
        Sylvain Vieujot added a comment -

        Right now I use :
        <x:htmlTag value="fieldset">
        <x:htmlTag value="legend"><x:outputText value="my legend"/></x:htmlTag>

        ......
        </x:htmlTag>

        It's not as clean as a real x:fieldSet component, but it does the job.

        Show
        Sylvain Vieujot added a comment - Right now I use : <x:htmlTag value="fieldset"> <x:htmlTag value="legend"><x:outputText value="my legend"/></x:htmlTag> ...... </x:htmlTag> It's not as clean as a real x:fieldSet component, but it does the job.
        Hide
        Sylvain Vieujot added a comment -

        Implemented in the sandbox.

        Show
        Sylvain Vieujot added a comment - Implemented in the sandbox.
        Hide
        Dominique Jean-Prost added a comment -

        Can someone tell me when this component will be sent to tomahawk (not sandbox) ?

        Show
        Dominique Jean-Prost added a comment - Can someone tell me when this component will be sent to tomahawk (not sandbox) ?
        Hide
        Mike Kienenberger added a comment -

        It will be promoted to Tomahawk when someone takes the time to clean it up (patches welcome) so that it meets promotion criteria:

        http://wiki.apache.org/myfaces/promotion

        And then starts a vote on myfaces-dev.

        Please jump in!

        Show
        Mike Kienenberger added a comment - It will be promoted to Tomahawk when someone takes the time to clean it up (patches welcome) so that it meets promotion criteria: http://wiki.apache.org/myfaces/promotion And then starts a vote on myfaces-dev. Please jump in!
        Hide
        Stephan Strittmatter added a comment -

        I just started to extend the tag to be able to set also style and styleClass to the legend. Probably this would be interessting to be added before moving to Tomahawk.

        Show
        Stephan Strittmatter added a comment - I just started to extend the tag to be able to set also style and styleClass to the legend. Probably this would be interessting to be added before moving to Tomahawk.

          People

          • Assignee:
            Unassigned
            Reporter:
            Stephan Strittmatter
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development