Current filter:
                                You should refresh the page.
                                0
                                  • Hello XAF Team,


                                    I used CaptionHelper.GetLocalizedText(@"XXX", "YYY"); code in controllers. It worked very well in v11.2.11, in both Win and Web platforms, with Middle Tier enabled (SecurityStrategyComplex + StandardAuth).


                                    The related controller code is unchanged after migrating from v11.2.11 to v12.1.4, with Middle Tier enabled (SecurityStrategyComplex + StandardAuth). The code works in Win UI without problem after migrating to v12.1.4.


                                    However, in Web UI, CaptionHelper.GetLocalizedText() always returns "" (string.Empty) in some circumstances:

                                    1) Middle Tier enabled, and

                                    2) Call CaptionHelper.GetLocalizedText() from Controllers in MySolution.Module project.


                                    IMPORTANT: This issue will probably occur in PopupWindowShowAction's CustomizePopupWindowParams event!


                                    Regards,

                                    James

                                • James Zhong 07.04.2012

                                  Hello Michael,
                                  Currently I don't have a small project. But I can describe how this issue may be re-produced:
                                  ~
                                  1) Create a new XAF v12.1.4 solution. Add Middle Tier console project to the solution.
                                  2) Configure Middle Tier server and client, using SecurityStrategyComplex + Standard Authentication.
                                  3) Use Updater.cs in MySolution.Module to create admin role and user.
                                  4) Create a new domain object, and then create a PopupWindowShowAction for it.
                                  5) In PopupWindowShowAction's CustomizePopupWindowParams event, use CaptionHelper.GetLocalizedText() to set the popup window view's caption at runtime.
                                  6) Run the application server (console) and the Web UI. Click the PopupWindowShowAction created previously. The popup window view's caption may be incorrect (empty). The same issue will NOT occur in the Win UI.

                                • James Zhong 07.04.2012

                                  Today, I also found NullValueText does not work as expected in the same VS2010 solution. It seems the value defined for NullValueText in DesignedDiffs.xafml is not respected.
                                  ~
                                  I compared CaptionHelper.cs in v12.1.4 and v11.2.11, and found some changes were introduced. Perhaps the CaptionHelper's behavior was affected by some other place.

                                • James Zhong 07.04.2012

                                  Is it possible that ValueManager will affect this behavior?

                                You must  log in  or  register  to leave comments

                                1 Solution

                                0

                                This issue disappears after installing your hot fix, released yesterday (July 4, 2012).

                                You must  log in  or  register  to leave comments
                                You must  log in  or  register  to leave an answer

                                Is your intention to post an answer to your own question?

                                • If so, then proceed.
                                • If you simply wanted to post additional information, ask for further clarification, or to just say "Thanks!", please click Leave a Comment.
                                • If you wish to edit your original question, please use the Edit button in the Toolbox at the top right corner of that entry.