[ 
https://issues.apache.org/jira/browse/COCOON-2342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13905609#comment-13905609
 ] 

Reynaldo Porras commented on COCOON-2342:
-----------------------------------------

Thanks for your reply Francesco. I am on linux too, specifically fedora 19. It 
is odd that you cannot reproduce the issue. Basically the steps I followed to 
reproduce the issue were:

1. Get a fresh checkout of cocoon branch 2.1:
 svn co http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X

2. Build cocoon:
 ./build.sh

3.Run cocoon webapp:
 ./cocoon.sh

4. Go to any of the links below

 http://localhost:8888/samples/blocks/forms/do-multiValueDoubleList.flow
 http://localhost:8888/samples/blocks/forms/do-multivalueWithSuggestion.flow

You'll see the widget are not rendered. On firebug console you'll see this 
error:

- For link  
http://localhost:8888/samples/blocks/forms/do-multiValueDoubleList.flow:
... [lots of output]
GET 
http://localhost:8888/_cocoon/resources/forms/js/templates/MultiValueDoubleList.html
dojo.js (line 769)
dojo.widget.Parse: error:
TypeError: this.selectLeft is undefined
}
... [lots of output]

- For link 
http://localhost:8888/samples/blocks/forms/do-multivalueWithSuggestion.flow:

... [lots of output]
GET 
http://localhost:8888/_cocoon/resources/forms/js/templates/MultiValueEditorWithSuggestion.html
      
dojo.js (line 769)
dojo.widget.Parse: error:
TypeError: this.select is undefined
};
... [lots of output]

After path is applied build cocoon (./build.sh) again and run cocoon webapp 
(./cocoon.sh). Go to the links above and you should see the widgets rendered.

> Apache license at the beginning cocoon's dojo widgets templates causes: 
> dojo.widget.Parse: error:
> -------------------------------------------------------------------------------------------------
>
>                 Key: COCOON-2342
>                 URL: https://issues.apache.org/jira/browse/COCOON-2342
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: Forms
>    Affects Versions: 2.1.12, 2.1.13
>            Reporter: Reynaldo Porras
>         Attachments: COCOON-2342.patch
>
>
> Get cocoon from http://svn.apache.org/repos/asf/cocoon/branches/BRANCH_2_1_X 
> and test cocoon form examples, specifically "Cocoon multivalue editor with 
> suggestions" or  "Cocoon double-list multivalue widget ". You should see that 
> the widgets are not being displayed and in debug console of the browser 
> should appear a message like this "dojo.widget.Parse: error: "
> This issue is present in MultiValueDoubleList widget,  
> MultiValueEditorWithsuggestion, MultiValueEditor and InfoPopup.
> Issue is caused by the apache license header added to the template files of 
> those widgets.
> I found that moving the license header inside of the first html element of 
> the widget fixes the issue.
> Test on firefox 27.0 and google chrome 32.0.1700.107.



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to