[
https://issues.apache.org/jira/browse/OFBIZ-2688?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12727174#action_12727174
]
Scott Gray commented on OFBIZ-2688:
-----------------------------------
The problem description is as follows:
{code}
<link target="javascript:confirmActionLink('You want to cancel this
invoice number ${invoice.invoiceId}?','setInvoiceStatus')" url-mode="plain"
link-type="hidden-form">
<parameter param-name="invoiceId"
from-field="invoice.invoiceId"/>
<parameter param-name="statusId" value="INVOICE_CANCELLED"/>
</link>
{code}
prior to the hidden form security stuff you could request confirmation from the
user by using javascript in the target attribute. That no longer works because
the target is placed into a form action rather than a link href.
I can think of two solutions:
1. Add support for confirmation requests to the link element with two new
attributes: request-confirmation and confirmation-message
2. There is a javascript function for submitting forms but it requires that
you know the name of the form which we don't for the hidden forms. I see 2
possible solutions for this problem:
a. Allow the developer to specify a name for the hidden form using a new link
attribute
b. Put the auto-generated formName in the context prior to the target attribute
being expanded, something like ${_hiddenFormName}
Any thoughts? other ideas?
> As per discussion on OFBIZ-2684 need to fix the problem in menu rendering.
> --------------------------------------------------------------------------
>
> Key: OFBIZ-2688
> URL: https://issues.apache.org/jira/browse/OFBIZ-2688
> Project: OFBiz
> Issue Type: Bug
> Components: framework
> Affects Versions: Release Branch 9.04, SVN trunk
> Reporter: Rishi Solanki
> Fix For: Release Branch 9.04, SVN trunk
>
>
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.