Administrator
|
Hi,
I wonder if the line containing spacer.gif is usefull or a forgotten scrap ? Jacques |
Those were used to position things in table-based layout. The same thing can be accomplished with
CSS now. Jacques Le Roux wrote: > Hi, > > I wonder if the line containing spacer.gif is usefull or a forgotten scrap ? > > Jacques > |
Administrator
|
In reply to this post by Jacques Le Roux
Ho, I see it's to allow (simulate) a submit button
Jacques De : "Jacques Le Roux" <[hidden email]> > Hi, > > I wonder if the line containing spacer.gif is usefull or a forgotten scrap ? > > Jacques > |
It would be better to have an actual (visible) Submit button - for accessibility reasons.
Jacques Le Roux wrote: > Ho, I see it's to allow (simulate) a submit button > > Jacques > > De : "Jacques Le Roux" <[hidden email]> > >>Hi, >> >>I wonder if the line containing spacer.gif is usefull or a forgotten scrap ? >> >>Jacques >> > > |
Administrator
|
Yes but this will be redundant with the update button and you can't have 2 submit buttons (there is also the delete button). So this
acts as a default button (for update). I'm sure there are other solutions, but It's too late here... Jacques De : "Adrian Crum" <[hidden email]> > It would be better to have an actual (visible) Submit button - for accessibility reasons. > > > Jacques Le Roux wrote: > > > Ho, I see it's to allow (simulate) a submit button > > > > Jacques > > > > De : "Jacques Le Roux" <[hidden email]> > > > >>Hi, > >> > >>I wonder if the line containing spacer.gif is usefull or a forgotten scrap ? > >> > >>Jacques > >> > > > > |
If there is an Update button that performs the same action as the spacer.gif, then the spacer.gif is
not needed. Jacques Le Roux wrote: > Yes but this will be redundant with the update button and you can't have 2 submit buttons (there is also the delete button). So this > acts as a default button (for update). > > I'm sure there are other solutions, but It's too late here... > > Jacques > > De : "Adrian Crum" <[hidden email]> > >>It would be better to have an actual (visible) Submit button - for accessibility reasons. >> >> >>Jacques Le Roux wrote: >> >> >>>Ho, I see it's to allow (simulate) a submit button >>> >>>Jacques >>> >>>De : "Jacques Le Roux" <[hidden email]> >>> >>>>Hi, >>>> >>>>I wonder if the line containing spacer.gif is usefull or a forgotten scrap ? >>>> >>>>Jacques >>>> >>> >>> > > |
Administrator
|
Adrian,
Try to remove it and you will not be able to use enter to update the field as it is doing now. I akcnowledege that it's weird but it works. No other comments ? Jacques De : "Adrian Crum" <[hidden email]> > If there is an Update button that performs the same action as the spacer.gif, then the spacer.gif is > not needed. > > > Jacques Le Roux wrote: > > > Yes but this will be redundant with the update button and you can't have 2 submit buttons (there is also the delete button). So this > > acts as a default button (for update). > > > > I'm sure there are other solutions, but It's too late here... > > > > Jacques > > > > De : "Adrian Crum" <[hidden email]> > > > >>It would be better to have an actual (visible) Submit button - for accessibility reasons. > >> > >> > >>Jacques Le Roux wrote: > >> > >> > >>>Ho, I see it's to allow (simulate) a submit button > >>> > >>>Jacques > >>> > >>>De : "Jacques Le Roux" <[hidden email]> > >>> > >>>>Hi, > >>>> > >>>>I wonder if the line containing spacer.gif is usefull or a forgotten scrap ? > >>>> > >>>>Jacques > >>>> > >>> > >>> > > > > |
Hi,
Nothing obvious looks out of place. I did some cleaning up as there were plenty of HTML errors and still a few table errors in there I think, but I need to go out now so have committed the clean ups and may do some more another day. It always helps to clean errors from HTML if it doesn't appear to be working as expected, but generally it's just a pain! Ray Jacques Le Roux wrote: > Adrian, > > Try to remove it and you will not be able to use enter to update the field as it is doing now. I akcnowledege that it's weird but it > works. No other comments ? > > Jacques > > De : "Adrian Crum" <[hidden email]> > >> If there is an Update button that performs the same action as the spacer.gif, then the spacer.gif is >> not needed. >> >> >> Jacques Le Roux wrote: >> >> >>> Yes but this will be redundant with the update button and you can't have 2 submit buttons (there is also the delete button). So >>> > this > >>> acts as a default button (for update). >>> >>> I'm sure there are other solutions, but It's too late here... >>> >>> Jacques >>> >>> De : "Adrian Crum" <[hidden email]> >>> >>> >>>> It would be better to have an actual (visible) Submit button - for accessibility reasons. >>>> >>>> >>>> Jacques Le Roux wrote: >>>> >>>> >>>> >>>>> Ho, I see it's to allow (simulate) a submit button >>>>> >>>>> Jacques >>>>> >>>>> De : "Jacques Le Roux" <[hidden email]> >>>>> >>>>> >>>>>> Hi, >>>>>> >>>>>> I wonder if the line containing spacer.gif is usefull or a forgotten scrap ? >>>>>> >>>>>> Jacques >>>>>> >>>>>> >>>>> >>> > > > |
In reply to this post by Jacques Le Roux
Jacques,
Try changing the Update link (<a> element) to an <input> element: <td nowrap width="25%"> <input type="text" name="amount" size="6" value="<@ofbizAmount amount=adjustmentAmount/>"/> <input type="submit" value="${uiLabelMap.CommonUpdate}"/> <a href="<@ofbizUrl>deleteOrderAdjustment?orderAdjustmentId=${orderAdjustmentId?if_exists}&orderId=${orderId?if_exists}</@ofbizUrl>" class="buttontext">${uiLabelMap.CommonDelete}</a> </td> -Adrian Jacques Le Roux wrote: > Adrian, > > Try to remove it and you will not be able to use enter to update the field as it is doing now. I akcnowledege that it's weird but it > works. No other comments ? > > Jacques > > De : "Adrian Crum" <[hidden email]> > >>If there is an Update button that performs the same action as the spacer.gif, then the spacer.gif is >>not needed. >> >> >>Jacques Le Roux wrote: >> >> >>>Yes but this will be redundant with the update button and you can't have 2 submit buttons (there is also the delete button). So > > this > >>>acts as a default button (for update). >>> >>>I'm sure there are other solutions, but It's too late here... >>> >>>Jacques >>> >>>De : "Adrian Crum" <[hidden email]> >>> >>>>It would be better to have an actual (visible) Submit button - for accessibility reasons. >>>> >>>> >>>>Jacques Le Roux wrote: >>>> >>>> >>>> >>>>>Ho, I see it's to allow (simulate) a submit button >>>>> >>>>>Jacques >>>>> >>>>>De : "Jacques Le Roux" <[hidden email]> >>>>> >>>>>>Hi, >>>>>> >>>>>>I wonder if the line containing spacer.gif is usefull or a forgotten scrap ? >>>>>> >>>>>>Jacques >>>>>> >>>>> >>>>> >>> > > |
Oddly enough I just did that a few minutes ago and it does work. The
update and delete 'button' are a little different in size but the return key does at least work without the gif entry. I've also been through and finished correcting the invalid table structures so I'll commit it shortly. Ray Adrian Crum wrote: > Jacques, > > Try changing the Update link (<a> element) to an <input> element: > > <td nowrap width="25%"> > <input type="text" name="amount" size="6" value="<@ofbizAmount > amount=adjustmentAmount/>"/> > <input type="submit" value="${uiLabelMap.CommonUpdate}"/> > <a > href="<@ofbizUrl>deleteOrderAdjustment?orderAdjustmentId=${orderAdjustmentId?if_exists}&orderId=${orderId?if_exists}</@ofbizUrl>" > class="buttontext">${uiLabelMap.CommonDelete}</a> > </td> > > -Adrian > > |
In reply to this post by Adrian Crum
I also just noticed the delete button fails anyway with an error:
The following required parameter is missing: [resetGrandTotal.orderId] It's not related to these changes as the test server fails also, job for another day. Ray Adrian Crum wrote: > Jacques, > > Try changing the Update link (<a> element) to an <input> element: > > <td nowrap width="25%"> > <input type="text" name="amount" size="6" value="<@ofbizAmount > amount=adjustmentAmount/>"/> > <input type="submit" value="${uiLabelMap.CommonUpdate}"/> > <a > href="<@ofbizUrl>deleteOrderAdjustment?orderAdjustmentId=${orderAdjustmentId?if_exists}&orderId=${orderId?if_exists}</@ofbizUrl>" > class="buttontext">${uiLabelMap.CommonDelete}</a> > </td> > > -Adrian > |
Administrator
|
Thanks Adrian and Ray,
Later I will have a look to see if there are more of this kind.... Jacques De : "Ray Barlow" <[hidden email]> > I also just noticed the delete button fails anyway with an error: > The following required parameter is missing: [resetGrandTotal.orderId] > > It's not related to these changes as the test server fails also, job for > another day. > > Ray > > > Adrian Crum wrote: > > Jacques, > > > > Try changing the Update link (<a> element) to an <input> element: > > > > <td nowrap width="25%"> > > <input type="text" name="amount" size="6" value="<@ofbizAmount > > amount=adjustmentAmount/>"/> > > <input type="submit" value="${uiLabelMap.CommonUpdate}"/> > > <a > > " > > class="buttontext">${uiLabelMap.CommonDelete}</a> > > </td> > > > > -Adrian > > |
In reply to this post by Ray Barlow
Ray,
Thank you very much for all your effort! I understand what you mean when you say cleaning up HTML is a pain. I just spent most of last Saturday cleaning up a bunch of ftl files, and even then there was still more work to do on them. -Adrian Ray Barlow wrote: > I also just noticed the delete button fails anyway with an error: > The following required parameter is missing: [resetGrandTotal.orderId] > > It's not related to these changes as the test server fails also, job for > another day. > > Ray > > > Adrian Crum wrote: > >>Jacques, >> >>Try changing the Update link (<a> element) to an <input> element: >> >><td nowrap width="25%"> >><input type="text" name="amount" size="6" value="<@ofbizAmount >>amount=adjustmentAmount/>"/> >><input type="submit" value="${uiLabelMap.CommonUpdate}"/> >><a >>href="<@ofbizUrl>deleteOrderAdjustment?orderAdjustmentId=${orderAdjustmentId?if_exists}&orderId=${orderId?if_exists}</@ofbizUrl>" >>class="buttontext">${uiLabelMap.CommonDelete}</a> >></td> >> >>-Adrian >> > > |
Yes,
and most of the ftl files (and bsh scripts) could also disappear by converting them to the widgets. Jacopo Adrian Crum wrote: > Ray, > > Thank you very much for all your effort! > > I understand what you mean when you say cleaning up HTML is a pain. I > just spent most of last Saturday cleaning up a bunch of ftl files, and > even then there was still more work to do on them. > > -Adrian > > Ray Barlow wrote: > >> I also just noticed the delete button fails anyway with an error: >> The following required parameter is missing: [resetGrandTotal.orderId] >> >> It's not related to these changes as the test server fails also, job for >> another day. >> >> Ray >> >> >> Adrian Crum wrote: >> >>> Jacques, >>> >>> Try changing the Update link (<a> element) to an <input> element: >>> >>> <td nowrap width="25%"> >>> <input type="text" name="amount" size="6" value="<@ofbizAmount >>> amount=adjustmentAmount/>"/> >>> <input type="submit" value="${uiLabelMap.CommonUpdate}"/> >>> <a >>> href="<@ofbizUrl>deleteOrderAdjustment?orderAdjustmentId=${orderAdjustmentId?if_exists}&orderId=${orderId?if_exists}</@ofbizUrl>" >>> >>> class="buttontext">${uiLabelMap.CommonDelete}</a> >>> </td> >>> >>> -Adrian >>> >> >> |
Administrator
|
+1
Jacques De : "Jacopo Cappellato" <[hidden email]> > Yes, > > and most of the ftl files (and bsh scripts) could also disappear by > converting them to the widgets. > > Jacopo > > Adrian Crum wrote: > > Ray, > > > > Thank you very much for all your effort! > > > > I understand what you mean when you say cleaning up HTML is a pain. I > > just spent most of last Saturday cleaning up a bunch of ftl files, and > > even then there was still more work to do on them. > > > > -Adrian > > > > Ray Barlow wrote: > > > >> I also just noticed the delete button fails anyway with an error: > >> The following required parameter is missing: [resetGrandTotal.orderId] > >> > >> It's not related to these changes as the test server fails also, job for > >> another day. > >> > >> Ray > >> > >> > >> Adrian Crum wrote: > >> > >>> Jacques, > >>> > >>> Try changing the Update link (<a> element) to an <input> element: > >>> > >>> <td nowrap width="25%"> > >>> <input type="text" name="amount" size="6" value="<@ofbizAmount > >>> amount=adjustmentAmount/>"/> > >>> <input type="submit" value="${uiLabelMap.CommonUpdate}"/> > >>> <a > >>> " > >>> > >>> class="buttontext">${uiLabelMap.CommonDelete}</a> > >>> </td> > >>> > >>> -Adrian > >>> > >> > >> |
Free forum by Nabble | Edit this page |