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

Cesar Lugo commented on ISIS-1221:
----------------------------------

Hello Jeroen,

I created a sample repository to show the issue.

https://github.com/cesarlugosis/isisbusinesstest2

After you download the repository, run the app, and then when in the wicket 
viewer (standard sven user), follow these steps:

1) Using the businessSubscriptions menu on the left, create a new 
businessSubscription (Add Subscription option). Use any numeric values for both 
parameters, like 1 and 30. This will show a newly created subscription with all 
fields organized in 3 sections aligned horizontally, according to 
BusinessSubscription.layout.json under dom's domainapp.dom.simple.businesses 
pack.
2) Now go to the Prototyping menu, select the option "Switch to Reading 
Translations"
3) Go back to the businessSubscriptions menu, now select the option to list all 
business subscriptions (now in Spanish, "List alas Subscripciones de 
Negocios"). It will show the businessSubsciption, but now the layout is lost, 
showing it with the default Isis wicket viewer layout.
4) If you go back to "Switch to Writing Translations" and list all 
businessSubscriptios again, the layout comes back.

I hope this helps to see and document the issue, or if not an issue, please let 
me know to understand how to solve it.

Cesar.



> JSON Format Layouts not recognized with i18n translations in Wicket Viewer
> --------------------------------------------------------------------------
>
>                 Key: ISIS-1221
>                 URL: https://issues.apache.org/jira/browse/ISIS-1221
>             Project: Isis
>          Issue Type: Bug
>          Components: Core: Viewer: Wicket
>    Affects Versions: 1.9.0
>         Environment: Windows Server, HSQLDB
>            Reporter: Cesar Lugo
>            Assignee: Dan Haywood
>
> I am working with Apache Isis Wicket viewer 1.9.0, and I have some form 
> layout json files to define the layout for some domain objects. I also added 
> a translation file (i18n) with some translations. When running the 
> application in the browser, when I am in “writing translations” mode it shows 
> the object form with the layout defined in the json file (ok), but when I 
> switch to “reading translations”, it goes back to the “default” layout, 
> ignoring the layout defined in the json file. 
> In regards to those modes, I am referring to the Apache wicket viewer menu 
> which, in prototype mode, has a "Prototyping" menu, which has an option 
> "Switch to Reading Translations". When you select that option and keep using 
> the application is when it loses the layouts defined in the json layout files.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to