[Logo] Enterprise Client Community
  [Search] Search   [Recent Topics] Recent Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Messages posted by: heyl  XML
Profile for heyl -> Messages posted by heyl [261] Go to Page: 1, 2, 3  ...  16, 17, 18 Next 
Author Message
Hi Björn,

aaah, I found it!

We are setting the language correctly in the sessions, default is English. So I wondered where the German text in the preview was coming from.

The answer was in the Dispatcher.
In the default constructor we are creating some default session parameters with German locale.

Code:
         if (HttpSessionAccess.checkIfInLayoutEditorPreview()) {
             m_sessionSettings = new SessionSettings(null, Locale.GERMAN, null);
         }
 


I didn't even remember the method checkIfInLayoutEditorPreview()

Thanks and best regards
Frauke[
Hi,

I have another issue related to this:
the default language seems not to work. I want to use English, but the preview still uses German.

My sessiondefaults.xml looks like this (style is working).

Code:
 <sessiondefaults
     style="act3_risc"
     language="en"
     country="US"
     clientlanguage="en"
     clientcountry="US"
 />


What could be the reason?
CaptainCasa version is still 20221005

Best regards
Frauke
Correction:

I think you meant the sessiondefaults.xml of the project, right?
that works!

I missunderstood and changed the sessiondefault.xml of the editor

Best regards
Frauke
Hi Björn,

thanks for your answer. I already tried this yesterday, but the session defaults do not seem to affect the jsp in the preview.

To me it looks like the preview styles (combo box selection list, see screenshot of my first post) are taken from the project and not from the editor.

We are using custom styles in the project, the editor doesn't know them and has it's own set of styles (built into some jar file).
Even copying the custom style into the Editor did not help.

Or has anything changed since version 20221005?
I did not do the update until now.

Best regards
Frauke
Hi everyone,

does sombody know if it is possible in EclntEditor to pre-select a custom default style that will be used for each jsp preview in the project automatically?

I can change the style for each jsp separately, but I don't find a way to set it as a global default for all jsp pages, for example in the .ccproject.

Does anyone have an idea how it could be done?

Best would be if it could use a style from the running application, not only from the project source webapp/eclntserver/styles

Best regards
Frauke
As a workaround, I removed the policy, then the URL is accepted and works in spite of the double slash.

best regards
Frauke
Thanks a lot, Björn
Hi everyone,

our security filter chain rejects the preview URL of the EclntEditor because it contains a double slash.
see attachement.

(SpringBoot app, CC version 20221005)

Is this a known error?

Best regards
Frauke
Hi,

we checked the dependencies of eclntjsfserver.jar and found some security issues, where the dependencies are not up-to-date.

See attached screen shot of report.

The complete report could not be uploaded, if you need it please tell me. Then I mail it.

Best regards
Frauke
Thanks, Björn!

But we are not using the project archetypes, but get the POM directly from your Maven repository. And there it's not yet removed.

For example:
https://www.captaincasademo.com/mavenrepository/org/eclnt/eclntjsfserver/20211217/eclntjsfserver-20211217.pom

Will that also be corrected in the next version?

Best regards
Frauke

Hi Björn,

happy new year to you and your team and everyone reading this post

Will you remove/exclude log4j from the POM in a future release of eclntjsfserver?

Best regards
Frauke
Hi Björn,

thanks!
Frauke
Hi everyone,

I managed to reduce serverside logging in the work/catalina folder by setting
Code:
<logging level="SEVERE"
          console="false"
          outputclassmethod="false">
 </logging>

in the logging.xml.

Is there also a way to reduce or switch off the performance logging?

thanks and best regards
Frauke
Thanks, Björn. Next Monday update will be ok!
Hello,

since we are using Swedish quite often we have our own translations of the language files in eclntjsfserver.jar, but there are also the ones in
myApplication\eclnt\risc\i18n\
With them we get the error message:
"Language sv is not known on client side and will be ignored"

Now we researched that "sv" is the ISO locale for Swedisch, "se" is "Northern Sami".

SE is the country code of Sweden, sv the locale Swedish, se the locale "Northern Sami"
see https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes
https://gist.github.com/ndbroadbent/588fefab8e0f1b459fcec8181b41b39c#file-rn-i18n-locale-identifiers-csv

Would you mind renaming the language file language_se.xml to language_sv.xml? Or do you support Northern Sami?

Thanks and best regards
Frauke
 
Profile for heyl -> Messages posted by heyl [261] Go to Page: 1, 2, 3  ...  16, 17, 18 Next 
Go to:   
Powered by JForum 2.1.6 © JForum Team