Jeromy,
   This can not worked according to your suggestion. There are bug in
Struts 2.0.6.
This bug is solved in Struts 2.0.8 and still this version in development
mode. So whenever it will relese then It would be solved.

Just try it and if u have other solution then tell me.

Vijay
On 5/24/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:

Vijay, I'm guessing you've already moved on from this, but the example
below is how you can use the doubleId attribute of
<s:optiontransferselect> to assign an html ID to the second select and
assign styles to that select using CSS.  The code you have quoted is an
extract from the stylesheet.  To reiterate, this is how to do it WITHOUT
doubleCssClass and doubleCssStyle (WW-1752).

Vijay Prajapati wrote:
> Jeromy,
>      Please try to use doubleCssClass and doubleCssStyle attribute in
> <s:optiontransferselect> in your production JSP. It won't work for
second
> list.
> You haven't use both of them attribute and how could you generate given
> below code in your JSP.
>     #userCompaniesAssigned {
>       width: 300px;
>    }
>
>    #userCompaniesNotAssigned {
>      width: 300px;
>   }
>
>
>
>
>
> On 5/22/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>>
>> Hmm... I use 2.0.6.
>>
>> The wiki at http://struts.apache.org/2.x/docs/optiontransferselect.html
>> lists doubleId as an attribute, it's definitely included in the
>> OptionTransferSelect class and OptionTransferSelectTag class (in
>> AbstractDoubleListTag) and it's definitely referenced in the
>> optiontransferselect.ftl template for the simple theme and above.
>>
>> I've encountered bug with optiontransferselect in 2.0.6 but it doesn't
>> affect this particular issue.
>>
>> In your email you typed 'doubled' instead of 'doubleId'.  I can't think
>> of what else it could be.
>>
>> Here is some production JSP that works:
>>
>> <s:optiontransferselect
>>      leftTitle="Grant Access to"
>>      rightTitle="Deny Access to"
>>      name="companiesAssigned"
>>      list="companiesAssignedList"
>>      listKey="key" listValue="description"
>>      id="userCompaniesAssigned"
>>      doubleName="companiesNotAssigned"
>>      doubleList="companiesNotAssignedList"
>>      doubleListKey="key" doubleListValue="description"
>>      doubleId="userCompaniesNotAssigned"
>>      allowAddAllToLeft="true"
>>      allowAddAllToRight="true"
>>      allowSelectAll="false"
>>      allowUpDownOnLeft="false"
>>      allowUpDownOnRight="false"/>
>>
>> and the CSS that sets the style of the two generated selects:
>> #userCompaniesAssigned {
>>    width: 300px;
>> }
>>
>> #userCompaniesNotAssigned {
>>    width: 300px;
>> }
>>
>> and an extract of the generated HTML:
>> <table border="0">
>> <tbody><tr>
>> <td>
>>    <label for="leftTitle">Grant Access to</label><br>
>> <select name="companiesAssigned" size="15" id="userCompaniesAssigned"
>> multiple="multiple">
>>    <option value="bc2ce5318da64ac7a3fbe781ef481b3b">My Company Pty
>> Ltd</option>
>>
>>
>> </select>
>>
>> </td>
>> <td align="center" valign="middle">
>>            <input value="&lt;-"
>> onclick="moveSelectedOptions(document.getElementById
>> ('userCompaniesNotAssigned'),
>> document.getElementById('userCompaniesAssigned'), false, '')"
>> type="button"><br><br>
>>            <input value="-&gt;"
>> onclick="moveSelectedOptions(document.getElementById
>> ('userCompaniesAssigned'),
>> document.getElementById('userCompaniesNotAssigned'), false, '')"
>> type="button"><br><br>
>>            <input value="&lt;&lt;--"
>> onclick="moveAllOptions(document.getElementById
>> ('userCompaniesNotAssigned'),
>> document.getElementById('userCompaniesAssigned'), false, '')"
>> type="button"><br><br>
>>            <input value="--&gt;&gt;"
>> onclick="moveAllOptions(document.getElementById
('userCompaniesAssigned'),
>>
>> document.getElementById('userCompaniesNotAssigned'), false, '')"
>> type="button"><br><br>
>> </td>
>> <td>
>>    <label for="rightTitle">Deny Access to</label><br>
>> <select name="companiesNotAssigned" size="15" multiple="multiple"
>> id="userCompaniesNotAssigned">
>> </select>
>> </td>
>> </tr>
>> </tbody></table>
>>
>>
>>
>> Vijay Prajapati wrote:
>> > Jeromy,
>> >    In which version it includes doubled attribute for second select.
I
>> am
>> > using Struts 2.0.6 and it doesn't allow it. Even in Struts blogs it
>> shows
>> > Bug in Optiontransferselect in version 2.0.6.
>> >  please send me code for it.
>> >
>> >
>> > Vijay
>> >
>> >
>> > On 5/22/07, Jeromy Evans <[EMAIL PROTECTED]> wrote:
>> >>
>> >> optiontransferselect includes the doubleId attribute for the second
>> >> select.  Your CSS can reference that ID.
>> >>
>> >> To change the order of the buttons you'll need to create your own
>> >> optiontransferselect.ftl template based on the existing one.
>> >>
>> >> Vijay Prajapati wrote:
>> >> > Hi,
>> >> >    This is Vijay and currently using Struts2.0.6 production
>> viersion
>> >> > in my
>> >> > application development.
>> >> > I have been used almost all tags in Struts2.0.6 but there are
>> problem
>> >> > in <s:
>> >> > optiontransferselect> tag. It doesn't include cssClass and
cssStyle
>> of
>> >> > Second Select box at run time.
>> >> > So Is there any solution for it?
>> >> > If any one has solved this problem in new version then please
>> let me
>> >> > know.
>> >> > Even I want to change order of left move and right move button
>> so can
>> >> > i do
>> >> > it?
>> >> >
>> >> > I am here giving code for this tag.
>> >> >
>> >> > <s:optiontransferselect name="systemName" list="systems"
>> >> multiple="true"
>> >> > leftTitle="%{getText('addgroupmanager.apceform.allSystems')}"
>> >> > doubleName="groupSystems"
>> >> > doubleList="systemgroup" doubleMultiple ="true"
>> >> rightTitle="%{getText('
>> >> > addgroupmanager.apceform.groupsystems ')}"
>> >> > buttonCssClass="formInputButton"
>> >> > allowAddToRight ="true" addToRightLabel="%{'> >'}"
>> >> allowAddToLeft="true"
>> >> > addToLeftLabel="%{' < <'}" allowUpDownOnLeft="false"
>> >> > allowUpDownOnRight="false"
>> >> > allowAddAllToLeft="false" allowAddAllToRight= "false"
>> >> > allowSelectAll="false"
>> >> > required= "true"/>
>> >> >
>> >> > Please help me ASAP.
>> >> >
>> >> > Thank you,
>> >> > Vijay Prajapati
>> >> >
>> >> >
>> >> > On 4/26/07, Laurie Harper <[EMAIL PROTECTED]> wrote:
>> >> >>
>> >> >> Felipe Rodrigues wrote:
>> >> >> > Hi guys,
>> >> >> >
>> >> >> > Can I somehow change the button (e.g. addAllToLeft) of a
>> >> >> > Optiontransferselect to some image? I imagine it can be done by
>> >> >> changing
>> >> >> the
>> >> >> > ftl, but I'd like some clues to do that.
>> >> >>
>> >> >> For some documentation on themes and extending/customizing
>> them, see
>> >> >> here:
>> >> >>
>> >> >> http://struts.apache.org/2.x/docs/themes-and-templates.html
>> >> >> http://struts.apache.org/2.x/docs/extending-themes.html
>> >> >>
>> >> >> > Would be great to define some id
>> >> >> > for these buttons, then we could change it by css.
>> >> >> > How about that?
>> >> >>
>> >> >> I don't know off hand what the markup looks like for this
>> component,
>> >> but
>> >> >> that may already be possible with the appropriate selectors. If
>> not,
>> >> >> customize the theme and make it so :-)
>> >> >>
>> >> >> L.
>> >> >>
>> >> >>
>> >> >>
>> ---------------------------------------------------------------------
>> >> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >>
>>
------------------------------------------------------------------------
>> >> >
>> >> > No virus found in this incoming message.
>> >> > Checked by AVG Free Edition.
>> >> > Version: 7.5.467 / Virus Database: 269.7.6/814 - Release Date:
>> >> 21/05/2007 2:01 PM
>> >> >
>> >>
>> >>
>> >>
---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> >> For additional commands, e-mail: [EMAIL PROTECTED]
>> >>
>> >>
>> >
>> >
>>
------------------------------------------------------------------------
>> >
>> > No virus found in this incoming message.
>> > Checked by AVG Free Edition.
>> > Version: 7.5.467 / Virus Database: 269.7.6/814 - Release Date:
>> 21/05/2007 2:01 PM
>> >
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
> ------------------------------------------------------------------------
>
> No virus found in this incoming message.
> Checked by AVG Free Edition.
> Version: 7.5.467 / Virus Database: 269.7.6/815 - Release Date:
22/05/2007 3:49 PM
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to