Hi, All
I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
Try multiple="multiple"
Regards Scott HotWax Media http://www.hotwaxmedia.com 801.657.2909 ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected Subject: render the select element as a list box in ftl Hi, All I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
Neither of multiple="multiple" and multiple="true" works.
-----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:24 To: [hidden email] Subject: Re: render the select element as a list box in ftl Try multiple="multiple" Regards Scott HotWax Media http://www.hotwaxmedia.com 801.657.2909 ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected Subject: render the select element as a list box in ftl Hi, All I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
Hrmm might be something specific to your browser, there's an example in this file:
EditProductQuickAdmin.ftl Viewable by Catalog -> GZ-1000 -> Quick Admin If that doesn't display properly then you'll need to dig into why not for your browser. Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Neither of multiple="multiple" and multiple="true" works. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:24 To: [hidden email] Subject: Re: render the select element as a list box in ftl Try multiple="multiple" Regards Scott HotWax Media http://www.hotwaxmedia.com 801.657.2909 ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected Subject: render the select element as a list box in ftl Hi, All I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
Scott, you are right. I can't see any list box in Quick Admin as rendered in my own page.
I use ie7.0. How should I do with this browser? Thank you. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:42 To: [hidden email] Subject: Re: render the select element as a list box in ftl Hrmm might be something specific to your browser, there's an example in this file: EditProductQuickAdmin.ftl Viewable by Catalog -> GZ-1000 -> Quick Admin If that doesn't display properly then you'll need to dig into why not for your browser. Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Neither of multiple="multiple" and multiple="true" works. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:24 To: [hidden email] Subject: Re: render the select element as a list box in ftl Try multiple="multiple" Regards Scott HotWax Media http://www.hotwaxmedia.com 801.657.2909 ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected Subject: render the select element as a list box in ftl Hi, All I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
Good question, I don't know but I'm sure google will.
Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 1:07:21 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Scott, you are right. I can't see any list box in Quick Admin as rendered in my own page. I use ie7.0. How should I do with this browser? Thank you. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:42 To: [hidden email] Subject: Re: render the select element as a list box in ftl Hrmm might be something specific to your browser, there's an example in this file: EditProductQuickAdmin.ftl Viewable by Catalog -> GZ-1000 -> Quick Admin If that doesn't display properly then you'll need to dig into why not for your browser. Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Neither of multiple="multiple" and multiple="true" works. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:24 To: [hidden email] Subject: Re: render the select element as a list box in ftl Try multiple="multiple" Regards Scott HotWax Media http://www.hotwaxmedia.com 801.657.2909 ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected Subject: render the select element as a list box in ftl Hi, All I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
But why does it render normally when I copy it from ftl page to htm page?
It's the problem of ftl or OFBiz itself? -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 11:13 To: [hidden email] Subject: Re: render the select element as a list box in ftl Good question, I don't know but I'm sure google will. Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 1:07:21 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Scott, you are right. I can't see any list box in Quick Admin as rendered in my own page. I use ie7.0. How should I do with this browser? Thank you. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:42 To: [hidden email] Subject: Re: render the select element as a list box in ftl Hrmm might be something specific to your browser, there's an example in this file: EditProductQuickAdmin.ftl Viewable by Catalog -> GZ-1000 -> Quick Admin If that doesn't display properly then you'll need to dig into why not for your browser. Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Neither of multiple="multiple" and multiple="true" works. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:24 To: [hidden email] Subject: Re: render the select element as a list box in ftl Try multiple="multiple" Regards Scott HotWax Media http://www.hotwaxmedia.com 801.657.2909 ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected Subject: render the select element as a list box in ftl Hi, All I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
Hello Jack,
Can you please check that can you make any option default selected using <option selected value="b">b</option>? Thanks & Regards, -- Ashish Nagar Jack Liu wrote: > But why does it render normally when I copy it from ftl page to htm page? > It's the problem of ftl or OFBiz itself? > > -----Original Message----- > From: Scott Gray [mailto:[hidden email]] > Sent: 2009年6月16日 11:13 > To: [hidden email] > Subject: Re: render the select element as a list box in ftl > > Good question, I don't know but I'm sure google will. > > Regards > Scott > > ----- Original Message ----- > From: "Jack Liu" <[hidden email]> > To: [hidden email] > Sent: Tuesday, June 16, 2009 1:07:21 PM (GMT+1000) Auto-Detected > Subject: RE: render the select element as a list box in ftl > > Scott, you are right. I can't see any list box in Quick Admin as rendered in my own page. > I use ie7.0. How should I do with this browser? > Thank you. > > -----Original Message----- > From: Scott Gray [mailto:[hidden email]] > Sent: 2009年6月16日 10:42 > To: [hidden email] > Subject: Re: render the select element as a list box in ftl > > Hrmm might be something specific to your browser, there's an example in this file: > EditProductQuickAdmin.ftl > Viewable by Catalog -> GZ-1000 -> Quick Admin > > If that doesn't display properly then you'll need to dig into why not for your browser. > > Regards > Scott > > ----- Original Message ----- > From: "Jack Liu" <[hidden email]> > To: [hidden email] > Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected > Subject: RE: render the select element as a list box in ftl > > Neither of multiple="multiple" and multiple="true" works. > > -----Original Message----- > From: Scott Gray [mailto:[hidden email]] > Sent: 2009年6月16日 10:24 > To: [hidden email] > Subject: Re: render the select element as a list box in ftl > > Try multiple="multiple" > > Regards > Scott > > HotWax Media > http://www.hotwaxmedia.com > 801.657.2909 > > ----- Original Message ----- > From: "Jack Liu" <[hidden email]> > To: [hidden email] > Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected > Subject: render the select element as a list box in ftl > > Hi, All > I took me about 1 hour to solve the problem, but failed at last. > To me, I think it's a simple question. I just want to render the select > element as a list box in ftl page and allow users to make multiple > selections from the list of options. > Code lists below: > <tr> > <td class="label">TestMulti</td> > <td><select name="testmul" size="2" multiple> > <option value="b">b</option> > <option value="a">a</option> > <option value="c">c</option> > </select> > </td> > </tr> > But what I get is nothing but a little box with a horizontal line in it. > When I copied it to html page, it works. > > Help me please, any suggestion is appreciated. > > Best Regards, > > Jack Liu > > |
Hi Ashish,
It works properly. -----Original Message----- From: Ashish Nagar [mailto:[hidden email]] Sent: 2009年6月16日 13:20 To: [hidden email] Subject: Re: render the select element as a list box in ftl Hello Jack, Can you please check that can you make any option default selected using <option selected value="b">b</option>? Thanks & Regards, -- Ashish Nagar Jack Liu wrote: > But why does it render normally when I copy it from ftl page to htm page? > It's the problem of ftl or OFBiz itself? > > -----Original Message----- > From: Scott Gray [mailto:[hidden email]] > Sent: 2009年6月16日 11:13 > To: [hidden email] > Subject: Re: render the select element as a list box in ftl > > Good question, I don't know but I'm sure google will. > > Regards > Scott > > ----- Original Message ----- > From: "Jack Liu" <[hidden email]> > To: [hidden email] > Sent: Tuesday, June 16, 2009 1:07:21 PM (GMT+1000) Auto-Detected > Subject: RE: render the select element as a list box in ftl > > Scott, you are right. I can't see any list box in Quick Admin as rendered in my own page. > I use ie7.0. How should I do with this browser? > Thank you. > > -----Original Message----- > From: Scott Gray [mailto:[hidden email]] > Sent: 2009年6月16日 10:42 > To: [hidden email] > Subject: Re: render the select element as a list box in ftl > > Hrmm might be something specific to your browser, there's an example in this file: > EditProductQuickAdmin.ftl > Viewable by Catalog -> GZ-1000 -> Quick Admin > > If that doesn't display properly then you'll need to dig into why not for your browser. > > Regards > Scott > > ----- Original Message ----- > From: "Jack Liu" <[hidden email]> > To: [hidden email] > Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected > Subject: RE: render the select element as a list box in ftl > > Neither of multiple="multiple" and multiple="true" works. > > -----Original Message----- > From: Scott Gray [mailto:[hidden email]] > Sent: 2009年6月16日 10:24 > To: [hidden email] > Subject: Re: render the select element as a list box in ftl > > Try multiple="multiple" > > Regards > Scott > > HotWax Media > http://www.hotwaxmedia.com > 801.657.2909 > > ----- Original Message ----- > From: "Jack Liu" <[hidden email]> > To: [hidden email] > Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected > Subject: render the select element as a list box in ftl > > Hi, All > I took me about 1 hour to solve the problem, but failed at last. > To me, I think it's a simple question. I just want to render the select > element as a list box in ftl page and allow users to make multiple > selections from the list of options. > Code lists below: > <tr> > <td class="label">TestMulti</td> > <td><select name="testmul" size="2" multiple> > <option value="b">b</option> > <option value="a">a</option> > <option value="c">c</option> > </select> > </td> > </tr> > But what I get is nothing but a little box with a horizontal line in it. > When I copied it to html page, it works. > > Help me please, any suggestion is appreciated. > > Best Regards, > > Jack Liu > > |
In reply to this post by Scott Gray-2
Hi Scott.
I tried ie6.0, mozilla and firefox. None of them renders the select element as a list box properly. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:42 To: [hidden email] Subject: Re: render the select element as a list box in ftl Hrmm might be something specific to your browser, there's an example in this file: EditProductQuickAdmin.ftl Viewable by Catalog -> GZ-1000 -> Quick Admin If that doesn't display properly then you'll need to dig into why not for your browser. Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Neither of multiple="multiple" and multiple="true" works. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:24 To: [hidden email] Subject: Re: render the select element as a list box in ftl Try multiple="multiple" Regards Scott HotWax Media http://www.hotwaxmedia.com 801.657.2909 ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected Subject: render the select element as a list box in ftl Hi, All I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
That's weird it works on Safari and I'm sure I tested it on Firefox last time I was working on that page.
You haven't modified the css have you? Or better yet have you tested the quick admin page using the demo server? Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 6:08:19 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Hi Scott. I tried ie6.0, mozilla and firefox. None of them renders the select element as a list box properly. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:42 To: [hidden email] Subject: Re: render the select element as a list box in ftl Hrmm might be something specific to your browser, there's an example in this file: EditProductQuickAdmin.ftl Viewable by Catalog -> GZ-1000 -> Quick Admin If that doesn't display properly then you'll need to dig into why not for your browser. Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Neither of multiple="multiple" and multiple="true" works. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:24 To: [hidden email] Subject: Re: render the select element as a list box in ftl Try multiple="multiple" Regards Scott HotWax Media http://www.hotwaxmedia.com 801.657.2909 ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected Subject: render the select element as a list box in ftl Hi, All I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
No, I use the default ccs.
I just tested, quick admin page is ok with Maxthon but ie6.0 and 7.0 don't render it correctly. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 16:22 To: [hidden email] Subject: Re: render the select element as a list box in ftl That's weird it works on Safari and I'm sure I tested it on Firefox last time I was working on that page. You haven't modified the css have you? Or better yet have you tested the quick admin page using the demo server? Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 6:08:19 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Hi Scott. I tried ie6.0, mozilla and firefox. None of them renders the select element as a list box properly. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:42 To: [hidden email] Subject: Re: render the select element as a list box in ftl Hrmm might be something specific to your browser, there's an example in this file: EditProductQuickAdmin.ftl Viewable by Catalog -> GZ-1000 -> Quick Admin If that doesn't display properly then you'll need to dig into why not for your browser. Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Neither of multiple="multiple" and multiple="true" works. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:24 To: [hidden email] Subject: Re: render the select element as a list box in ftl Try multiple="multiple" Regards Scott HotWax Media http://www.hotwaxmedia.com 801.657.2909 ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected Subject: render the select element as a list box in ftl Hi, All I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
Sorry, It's Firefox not Maxthon can render it correctly.
-----Original Message----- From: Jack Liu [mailto:[hidden email]] Sent: 2009年6月16日 16:36 To: [hidden email] Subject: RE: render the select element as a list box in ftl No, I use the default ccs. I just tested, quick admin page is ok with Maxthon but ie6.0 and 7.0 don't render it correctly. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 16:22 To: [hidden email] Subject: Re: render the select element as a list box in ftl That's weird it works on Safari and I'm sure I tested it on Firefox last time I was working on that page. You haven't modified the css have you? Or better yet have you tested the quick admin page using the demo server? Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 6:08:19 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Hi Scott. I tried ie6.0, mozilla and firefox. None of them renders the select element as a list box properly. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:42 To: [hidden email] Subject: Re: render the select element as a list box in ftl Hrmm might be something specific to your browser, there's an example in this file: EditProductQuickAdmin.ftl Viewable by Catalog -> GZ-1000 -> Quick Admin If that doesn't display properly then you'll need to dig into why not for your browser. Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Neither of multiple="multiple" and multiple="true" works. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:24 To: [hidden email] Subject: Re: render the select element as a list box in ftl Try multiple="multiple" Regards Scott HotWax Media http://www.hotwaxmedia.com 801.657.2909 ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected Subject: render the select element as a list box in ftl Hi, All I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
In reply to this post by Jack Liu-2
Please verify that the page source of the generated web page contains
the desired dropdown code only once. You can check it using 'view page source' option. -- Ashish Nagar Jack Liu wrote: > Hi Ashish, > It works properly. > > -----Original Message----- > From: Ashish Nagar [mailto:[hidden email]] > Sent: 2009年6月16日 13:20 > To: [hidden email] > Subject: Re: render the select element as a list box in ftl > > Hello Jack, > > Can you please check that can you make any option default selected using > <option selected value="b">b</option>? > > Thanks & Regards, > -- > Ashish Nagar > > Jack Liu wrote: > >> But why does it render normally when I copy it from ftl page to htm page? >> It's the problem of ftl or OFBiz itself? >> >> -----Original Message----- >> From: Scott Gray [mailto:[hidden email]] >> Sent: 2009年6月16日 11:13 >> To: [hidden email] >> Subject: Re: render the select element as a list box in ftl >> >> Good question, I don't know but I'm sure google will. >> >> Regards >> Scott >> >> ----- Original Message ----- >> From: "Jack Liu" <[hidden email]> >> To: [hidden email] >> Sent: Tuesday, June 16, 2009 1:07:21 PM (GMT+1000) Auto-Detected >> Subject: RE: render the select element as a list box in ftl >> >> Scott, you are right. I can't see any list box in Quick Admin as rendered in my own page. >> I use ie7.0. How should I do with this browser? >> Thank you. >> >> -----Original Message----- >> From: Scott Gray [mailto:[hidden email]] >> Sent: 2009年6月16日 10:42 >> To: [hidden email] >> Subject: Re: render the select element as a list box in ftl >> >> Hrmm might be something specific to your browser, there's an example in this file: >> EditProductQuickAdmin.ftl >> Viewable by Catalog -> GZ-1000 -> Quick Admin >> >> If that doesn't display properly then you'll need to dig into why not for your browser. >> >> Regards >> Scott >> >> ----- Original Message ----- >> From: "Jack Liu" <[hidden email]> >> To: [hidden email] >> Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected >> Subject: RE: render the select element as a list box in ftl >> >> Neither of multiple="multiple" and multiple="true" works. >> >> -----Original Message----- >> From: Scott Gray [mailto:[hidden email]] >> Sent: 2009年6月16日 10:24 >> To: [hidden email] >> Subject: Re: render the select element as a list box in ftl >> >> Try multiple="multiple" >> >> Regards >> Scott >> >> HotWax Media >> http://www.hotwaxmedia.com >> 801.657.2909 >> >> ----- Original Message ----- >> From: "Jack Liu" <[hidden email]> >> To: [hidden email] >> Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected >> Subject: render the select element as a list box in ftl >> >> Hi, All >> I took me about 1 hour to solve the problem, but failed at last. >> To me, I think it's a simple question. I just want to render the select >> element as a list box in ftl page and allow users to make multiple >> selections from the list of options. >> Code lists below: >> <tr> >> <td class="label">TestMulti</td> >> <td><select name="testmul" size="2" multiple> >> <option value="b">b</option> >> <option value="a">a</option> >> <option value="c">c</option> >> </select> >> </td> >> </tr> >> But what I get is nothing but a little box with a horizontal line in it. >> When I copied it to html page, it works. >> >> Help me please, any suggestion is appreciated. >> >> Best Regards, >> >> Jack Liu >> >> >> > > |
Yes, definitely.
I got the source code through the browse then saved it as a html page, which renders the list box properly. -----Original Message----- From: Ashish Nagar [mailto:[hidden email]] Sent: 2009年6月16日 18:12 To: [hidden email] Subject: Re: render the select element as a list box in ftl Please verify that the page source of the generated web page contains the desired dropdown code only once. You can check it using 'view page source' option. -- Ashish Nagar Jack Liu wrote: > Hi Ashish, > It works properly. > > -----Original Message----- > From: Ashish Nagar [mailto:[hidden email]] > Sent: 2009年6月16日 13:20 > To: [hidden email] > Subject: Re: render the select element as a list box in ftl > > Hello Jack, > > Can you please check that can you make any option default selected using > <option selected value="b">b</option>? > > Thanks & Regards, > -- > Ashish Nagar > > Jack Liu wrote: > >> But why does it render normally when I copy it from ftl page to htm page? >> It's the problem of ftl or OFBiz itself? >> >> -----Original Message----- >> From: Scott Gray [mailto:[hidden email]] >> Sent: 2009年6月16日 11:13 >> To: [hidden email] >> Subject: Re: render the select element as a list box in ftl >> >> Good question, I don't know but I'm sure google will. >> >> Regards >> Scott >> >> ----- Original Message ----- >> From: "Jack Liu" <[hidden email]> >> To: [hidden email] >> Sent: Tuesday, June 16, 2009 1:07:21 PM (GMT+1000) Auto-Detected >> Subject: RE: render the select element as a list box in ftl >> >> Scott, you are right. I can't see any list box in Quick Admin as rendered in my own page. >> I use ie7.0. How should I do with this browser? >> Thank you. >> >> -----Original Message----- >> From: Scott Gray [mailto:[hidden email]] >> Sent: 2009年6月16日 10:42 >> To: [hidden email] >> Subject: Re: render the select element as a list box in ftl >> >> Hrmm might be something specific to your browser, there's an example in this file: >> EditProductQuickAdmin.ftl >> Viewable by Catalog -> GZ-1000 -> Quick Admin >> >> If that doesn't display properly then you'll need to dig into why not for your browser. >> >> Regards >> Scott >> >> ----- Original Message ----- >> From: "Jack Liu" <[hidden email]> >> To: [hidden email] >> Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected >> Subject: RE: render the select element as a list box in ftl >> >> Neither of multiple="multiple" and multiple="true" works. >> >> -----Original Message----- >> From: Scott Gray [mailto:[hidden email]] >> Sent: 2009年6月16日 10:24 >> To: [hidden email] >> Subject: Re: render the select element as a list box in ftl >> >> Try multiple="multiple" >> >> Regards >> Scott >> >> HotWax Media >> http://www.hotwaxmedia.com >> 801.657.2909 >> >> ----- Original Message ----- >> From: "Jack Liu" <[hidden email]> >> To: [hidden email] >> Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected >> Subject: render the select element as a list box in ftl >> >> Hi, All >> I took me about 1 hour to solve the problem, but failed at last. >> To me, I think it's a simple question. I just want to render the select >> element as a list box in ftl page and allow users to make multiple >> selections from the list of options. >> Code lists below: >> <tr> >> <td class="label">TestMulti</td> >> <td><select name="testmul" size="2" multiple> >> <option value="b">b</option> >> <option value="a">a</option> >> <option value="c">c</option> >> </select> >> </td> >> </tr> >> But what I get is nothing but a little box with a horizontal line in it. >> When I copied it to html page, it works. >> >> Help me please, any suggestion is appreciated. >> >> Best Regards, >> >> Jack Liu >> >> >> > > |
In reply to this post by Scott Gray-2
Hi, Scott
I want it to work properly on IE 6.0 or 7.0, how should I do? Thank you in advance. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 16:22 To: [hidden email] Subject: Re: render the select element as a list box in ftl That's weird it works on Safari and I'm sure I tested it on Firefox last time I was working on that page. You haven't modified the css have you? Or better yet have you tested the quick admin page using the demo server? Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 6:08:19 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Hi Scott. I tried ie6.0, mozilla and firefox. None of them renders the select element as a list box properly. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:42 To: [hidden email] Subject: Re: render the select element as a list box in ftl Hrmm might be something specific to your browser, there's an example in this file: EditProductQuickAdmin.ftl Viewable by Catalog -> GZ-1000 -> Quick Admin If that doesn't display properly then you'll need to dig into why not for your browser. Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Neither of multiple="multiple" and multiple="true" works. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:24 To: [hidden email] Subject: Re: render the select element as a list box in ftl Try multiple="multiple" Regards Scott HotWax Media http://www.hotwaxmedia.com 801.657.2909 ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected Subject: render the select element as a list box in ftl Hi, All I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
And in Form Widgets
<field name="country"> <drop-down allow-multiple="true" size="10"> <list-options list-name="countryList" key-name="name" description="${name}"/> </drop-down> </field> I can't get a list box either, though countryList has more than 200 records. -----Original Message----- From: Jack Liu [mailto:[hidden email]] Sent: 2009年6月17日 14:30 To: [hidden email] Subject: RE: render the select element as a list box in ftl Hi, Scott I want it to work properly on IE 6.0 or 7.0, how should I do? Thank you in advance. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 16:22 To: [hidden email] Subject: Re: render the select element as a list box in ftl That's weird it works on Safari and I'm sure I tested it on Firefox last time I was working on that page. You haven't modified the css have you? Or better yet have you tested the quick admin page using the demo server? Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 6:08:19 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Hi Scott. I tried ie6.0, mozilla and firefox. None of them renders the select element as a list box properly. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:42 To: [hidden email] Subject: Re: render the select element as a list box in ftl Hrmm might be something specific to your browser, there's an example in this file: EditProductQuickAdmin.ftl Viewable by Catalog -> GZ-1000 -> Quick Admin If that doesn't display properly then you'll need to dig into why not for your browser. Regards Scott ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected Subject: RE: render the select element as a list box in ftl Neither of multiple="multiple" and multiple="true" works. -----Original Message----- From: Scott Gray [mailto:[hidden email]] Sent: 2009年6月16日 10:24 To: [hidden email] Subject: Re: render the select element as a list box in ftl Try multiple="multiple" Regards Scott HotWax Media http://www.hotwaxmedia.com 801.657.2909 ----- Original Message ----- From: "Jack Liu" <[hidden email]> To: [hidden email] Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected Subject: render the select element as a list box in ftl Hi, All I took me about 1 hour to solve the problem, but failed at last. To me, I think it's a simple question. I just want to render the select element as a list box in ftl page and allow users to make multiple selections from the list of options. Code lists below: <tr> <td class="label">TestMulti</td> <td><select name="testmul" size="2" multiple> <option value="b">b</option> <option value="a">a</option> <option value="c">c</option> </select> </td> </tr> But what I get is nothing but a little box with a horizontal line in it. When I copied it to html page, it works. Help me please, any suggestion is appreciated. Best Regards, Jack Liu |
In reply to this post by Scott Gray-2
since is works in FF, which is CSS compliant, it is not a code problem
but a CSS problem. these would be CSS specific code meant to fix IE deviation for normal CSS. Jack Liu sent the following on 6/16/2009 11:29 PM: > Hi, Scott > I want it to work properly on IE 6.0 or 7.0, how should I do? > Thank you in advance. > > -----Original Message----- > From: Scott Gray [mailto:[hidden email]] > Sent: 2009年6月16日 16:22 > To: [hidden email] > Subject: Re: render the select element as a list box in ftl > > That's weird it works on Safari and I'm sure I tested it on Firefox last time I was working on that page. > > You haven't modified the css have you? Or better yet have you tested the quick admin page using the demo server? > > Regards > Scott > > ----- Original Message ----- > From: "Jack Liu" <[hidden email]> > To: [hidden email] > Sent: Tuesday, June 16, 2009 6:08:19 PM (GMT+1000) Auto-Detected > Subject: RE: render the select element as a list box in ftl > > Hi Scott. > I tried ie6.0, mozilla and firefox. > None of them renders the select element as a list box properly. > > > > > -----Original Message----- > From: Scott Gray [mailto:[hidden email]] > Sent: 2009年6月16日 10:42 > To: [hidden email] > Subject: Re: render the select element as a list box in ftl > > Hrmm might be something specific to your browser, there's an example in this file: > EditProductQuickAdmin.ftl > Viewable by Catalog -> GZ-1000 -> Quick Admin > > If that doesn't display properly then you'll need to dig into why not for your browser. > > Regards > Scott > > ----- Original Message ----- > From: "Jack Liu" <[hidden email]> > To: [hidden email] > Sent: Tuesday, June 16, 2009 12:27:53 PM (GMT+1000) Auto-Detected > Subject: RE: render the select element as a list box in ftl > > Neither of multiple="multiple" and multiple="true" works. > > -----Original Message----- > From: Scott Gray [mailto:[hidden email]] > Sent: 2009年6月16日 10:24 > To: [hidden email] > Subject: Re: render the select element as a list box in ftl > > Try multiple="multiple" > > Regards > Scott > > HotWax Media > http://www.hotwaxmedia.com > 801.657.2909 > > ----- Original Message ----- > From: "Jack Liu" <[hidden email]> > To: [hidden email] > Sent: Tuesday, June 16, 2009 12:20:10 PM (GMT+1000) Auto-Detected > Subject: render the select element as a list box in ftl > > Hi, All > I took me about 1 hour to solve the problem, but failed at last. > To me, I think it's a simple question. I just want to render the select > element as a list box in ftl page and allow users to make multiple > selections from the list of options. > Code lists below: > <tr> > <td class="label">TestMulti</td> > <td><select name="testmul" size="2" multiple> > <option value="b">b</option> > <option value="a">a</option> > <option value="c">c</option> > </select> > </td> > </tr> > But what I get is nothing but a little box with a horizontal line in it. > When I copied it to html page, it works. > > Help me please, any suggestion is appreciated. > > Best Regards, > > Jack Liu > > -- BJ Freeman http://www.businessesnetwork.com/automation http://bjfreeman.elance.com http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro Systems Integrator. |
Free forum by Nabble | Edit this page |