[ 
https://issues.apache.org/jira/browse/OFBIZ-2243?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683508#action_12683508
 ] 

Jacques Le Roux commented on OFBIZ-2243:
----------------------------------------

Of course there were flaws, the expressions should be 

{code}
<(.*)hyperlink(.*) 
target=(.*)\?(.*)=\$\{(.*)\}\&amp;(.*)=\$\{(.*)\}\&amp;(.*)=\$\{(.*)\}\&amp;(.*)=\$\{(.*)\}\&amp;(.*)=\$\{(.*)\}\&amp;(.*)=\$\{(.*)\}(.*)/>
  1             2          3      4        5           6        7           8   
     9          10       11          12       13          14       15    16

<$1hyperlink$2 target=$3"$16>\R\t\t\t\t<parameter 
param-name="$5"/>\R\t\t\t\t<parameter param-name="$7"/>\R\t\t\t\t<parameter 
param-name="$9"/>\R\t\t\t\t<parameter param-name="$11"/>\R\t\t\t\t<parameter 
param-name="$13"/>\R\t\t\t\t<parameter param-name="$15"/>\R\t\t\t</$1hyperlink>
{code}

* *{* needs to be escaped 
* no *space* should be at end, before last match block in search exp. and 
before $16 in repl. exp. It will be included in $16 (in our case : 1st 
iteration, and not *$17* as previously) if it exists.

HTH

> In hyperlink and sub-hyperlink elements, replacement of target parameters by 
> parameter sub-elements
> ---------------------------------------------------------------------------------------------------
>
>                 Key: OFBIZ-2243
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-2243
>             Project: OFBiz
>          Issue Type: Improvement
>          Components: ALL COMPONENTS
>    Affects Versions: SVN trunk
>            Reporter: Jacques Le Roux
>
> This issue is intended to replace, in all hyperlink and sub-hyperlink 
> elements used in forms, screens  and menus widgets, target parameters by 
> parameter sub-elements using Eclipse regexp S/R

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to