Author: sascharodekamp
Date: Fri May 13 08:52:15 2011 New Revision: 1102615 URL: http://svn.apache.org/viewvc?rev=1102615&view=rev Log: after session timeout, ajax popup dialogbox shows ofbiz login screen (https://issues.apache.org/jira/browse/OFBIZ-4256). If the session is timed out the request handler checks weather it is an ajax request or not (The information comes from the request header if the X-Requested-With contains XMLHttpRequest we haven an ajax request.). If it is an ajax request it don't return the normal "checkLogin" request, i return a a special ajaxCheckLogin request. This request can point to an site which shows the "Please Login Hint". Orig Msg: Take the following page (for example) https://localhost/content/control/findContent field "Data Resource Id" has an icon beside it that creates an ajax dialog pop up. If the session has already timed out. The dialog box would show the login screen. I suspect that all pages containing this functionality would exhibit the same symptom. Modified: ofbiz/trunk/framework/common/config/CommonUiLabels.xml ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml ofbiz/trunk/framework/common/widget/CommonScreens.xml ofbiz/trunk/framework/images/webapp/images/fieldlookup.js ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java Modified: ofbiz/trunk/framework/common/config/CommonUiLabels.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/config/CommonUiLabels.xml?rev=1102615&r1=1102614&r2=1102615&view=diff ============================================================================== --- ofbiz/trunk/framework/common/config/CommonUiLabels.xml (original) +++ ofbiz/trunk/framework/common/config/CommonUiLabels.xml Fri May 13 08:52:15 2011 @@ -114,6 +114,9 @@ <value xml:lang="zh_CN">ç®å½</value> <value xml:lang="zh_TW">ç®é</value> </property> + <property key="CommonAbort"> + <value xml:lang="en">Abort</value> + </property> <property key="CommonAccepted"> <value xml:lang="ar">Ù ÙبÙÙ</value> <value xml:lang="de">Angenommen</value> @@ -372,6 +375,10 @@ <value xml:lang="zh_CN">å°åæ </value> <value xml:lang="zh_TW">å°åç·</value> </property> + <property key="CommonAddressNotFound"> + <value xml:lang="de">Die Adresse wurde nicht gefunden.</value> + <value xml:lang="en">Address not found.</value> + </property> <property key="CommonAddresses"> <value xml:lang="ar">عÙاÙÙÙ</value> <value xml:lang="de">Adressen</value> @@ -854,6 +861,12 @@ <value xml:lang="zh_CN">å «æ</value> <value xml:lang="zh_TW">å «æ</value> </property> + <property key="CommonAuthenticate"> + <value xml:lang="en">Authenticate</value> + </property> + <property key="CommonAuthorise"> + <value xml:lang="en">Authorise</value> + </property> <property key="CommonAutoAssignedId"> <value xml:lang="en">Unique ID - auto-assigned if blank</value> <value xml:lang="es">Código único - asignado automáticamente si se deja en blanco</value> @@ -1067,6 +1080,22 @@ <value xml:lang="zh_CN">被</value> <value xml:lang="zh_TW">ä½è </value> </property> + <property key="CommonCDyneAddressError"> + <value xml:lang="en">Got AddressError=true from CDyne ReturnCityState service; zipcode=${zipcode}</value> + <value xml:lang="it">Ottenuto AddressError=true dal servizio CDyne ReturnCityState; zipcode=${zipcode}</value> + </property> + <property key="CommonCDyneCallingError"> + <value xml:lang="en">Error calling CDyne service at URL ${serviceUrl}: ${errorString}</value> + <value xml:lang="it">Errore durante la chiamata del servizio CDyne dell'URL ${serviceUrl}: ${errorString})</value> + </property> + <property key="CommonCDyneParsingError"> + <value xml:lang="en">Error parsing XML result from CDyne service at URL ${serviceUrl}: ${errorString}</value> + <value xml:lang="it">Errore di parsing XML risposta dal servizio CDyne dell'URL ${serviceUrl}: ${errorString})</value> + </property> + <property key="CommonCDyneServiceError"> + <value xml:lang="en">Got ServiceError=true from CDyne ReturnCityState service; zipcode=${zipcode}</value> + <value xml:lang="it">Ottenuto ServiceError=true dal servizio CDyne ReturnCityState; zipcode=${zipcode}</value> + </property> <property key="CommonCancel"> <value xml:lang="ar">Ø¥Ùغاء</value> <value xml:lang="cs">Storno</value> @@ -1152,22 +1181,6 @@ <value xml:lang="en">Captcha Code</value> <value xml:lang="pt_BR">Código Captcha</value> </property> - <property key="CommonCDyneAddressError"> - <value xml:lang="en">Got AddressError=true from CDyne ReturnCityState service; zipcode=${zipcode}</value> - <value xml:lang="it">Ottenuto AddressError=true dal servizio CDyne ReturnCityState; zipcode=${zipcode}</value> - </property> - <property key="CommonCDyneCallingError"> - <value xml:lang="en">Error calling CDyne service at URL ${serviceUrl}: ${errorString}</value> - <value xml:lang="it">Errore durante la chiamata del servizio CDyne dell'URL ${serviceUrl}: ${errorString})</value> - </property> - <property key="CommonCDyneParsingError"> - <value xml:lang="en">Error parsing XML result from CDyne service at URL ${serviceUrl}: ${errorString}</value> - <value xml:lang="it">Errore di parsing XML risposta dal servizio CDyne dell'URL ${serviceUrl}: ${errorString})</value> - </property> - <property key="CommonCDyneServiceError"> - <value xml:lang="en">Got ServiceError=true from CDyne ReturnCityState service; zipcode=${zipcode}</value> - <value xml:lang="it">Ottenuto ServiceError=true dal servizio CDyne ReturnCityState; zipcode=${zipcode}</value> - </property> <property key="CommonChange"> <value xml:lang="ar">تغÙÙر</value> <value xml:lang="de">Verändern</value> @@ -2105,6 +2118,9 @@ <value xml:lang="zh">缺çç»ç»æºæ</value> <value xml:lang="zh_TW">é è¨çµç¹æ©æ§</value> </property> + <property key="CommonDeferred"> + <value xml:lang="en">Deferred</value> + </property> <property key="CommonDelete"> <value xml:lang="ar">ØØ°Ù</value> <value xml:lang="cs">Smazat</value> @@ -2390,6 +2406,14 @@ <value xml:lang="en">Email already exist</value> <value xml:lang="pt_BR">E-mail já existe</value> </property> + <property key="CommonEmailDeliveryFailed"> + <value xml:lang="en">Delivery to the following recipient(s) failed:</value> + <value xml:lang="it">Consegna ai seguenti destinatario(i) fallita:</value> + </property> + <property key="CommonEmailDeliveryOriginalMessage"> + <value xml:lang="en">----- Original message -----</value> + <value xml:lang="it">----- messaggio originale -----</value> + </property> <property key="CommonEmailNotValid"> <value xml:lang="en">PartyId: ${parameters.partyIdTo} has no valid email address!</value> <value xml:lang="it">Id soggetto: ${parameters.partyIdTo} non ha un'indirizzo e-mail valido!</value> @@ -2422,14 +2446,6 @@ <value xml:lang="en">[CON] Connection error when sending message to ${sendTo} from ${sendFrom} cc ${sendCc} bcc ${sendBcc} subject ${subject}</value> <value xml:lang="it">[CON] Errore connessione durante l'invio del messaggio a ${sendTo} da ${sendFrom} cc ${sendCc} cn ${sendBcc} soggetto ${subject}</value> </property> - <property key="CommonEmailDeliveryFailed"> - <value xml:lang="en">Delivery to the following recipient(s) failed:</value> - <value xml:lang="it">Consegna ai seguenti destinatario(i) fallita:</value> - </property> - <property key="CommonEmailDeliveryOriginalMessage"> - <value xml:lang="en">----- Original message -----</value> - <value xml:lang="it">----- messaggio originale -----</value> - </property> <property key="CommonEmailSendError"> <value xml:lang="en">Error send email: ${errorString}</value> <value xml:lang="it">Errore invio email: ${errorString}</value> @@ -2438,22 +2454,22 @@ <value xml:lang="en">Error getting content: ${errorString}</value> <value xml:lang="it">Errore nel ricavare contenuto: ${errorString}</value> </property> - <property key="CommonEmailSendMalformedUrl"> - <value xml:lang="en">Malformed URL: ${bodyUrl}; error was: ${errorString}</value> - <value xml:lang="it">URL malformato : ${bodyUrl}; errore era: ${errorString}</value> - </property> - <property key="CommonEmailSendMissingParameterSendVia"> - <value xml:lang="en">Parameter sendVia is required when sendType is not mail.smtp.host</value> - <value xml:lang="it">Parametro sendVia è richiesto quando sendType non è mail.smtp.host</value> - </property> <property key="CommonEmailSendIOException"> <value xml:lang="en">IOException when creating message to ${sendTo} from ${sendFrom} cc ${sendCc} bcc ${sendBcc} subject ${subject}</value> <value xml:lang="it">IOException durante la creazione del messaggio a ${sendTo} da ${sendFrom} cc ${sendCc} cn ${sendBcc} soggetto ${subject}</value> </property> + <property key="CommonEmailSendMalformedUrl"> + <value xml:lang="en">Malformed URL: ${bodyUrl}; error was: ${errorString}</value> + <value xml:lang="it">URL malformato : ${bodyUrl}; errore era: ${errorString}</value> + </property> <property key="CommonEmailSendMessagingException"> <value xml:lang="en">MessagingException when creating message to ${sendTo} from ${sendFrom} cc ${sendCc} bcc ${sendBcc} subject ${subject}</value> <value xml:lang="it">MessagingException durante la creazione del messaggio a ${sendTo} da ${sendFrom} cc ${sendCc} cn ${sendBcc} soggetto ${subject}</value> </property> + <property key="CommonEmailSendMissingParameterSendVia"> + <value xml:lang="en">Parameter sendVia is required when sendType is not mail.smtp.host</value> + <value xml:lang="it">Parametro sendVia è richiesto quando sendType non è mail.smtp.host</value> + </property> <property key="CommonEmailSendRenderingScreenEmailError"> <value xml:lang="en">Error rendering screen for email: ${errorString}</value> <value xml:lang="it">Errore di visualizzazione videata per email: ${errorString}</value> @@ -2527,7 +2543,7 @@ <value xml:lang="zh_TW">é»åéµä»¶</value> </property> <property key="CommonEmptyHeader"> - <value xml:lang="en" xml:space="preserve"> </value> + <value xml:lang="en" xml:space="preserve"/> </property> <property key="CommonEnable"> <value xml:lang="en">Enable</value> @@ -2709,6 +2725,10 @@ <value xml:lang="zh">é误: ${entity}ç¶ææ æï¼ç°å¨æ¯${lookedUpValue.statusId}ï¼åºè¯¥æ¯${goodStatusId}ã</value> <value xml:lang="zh_TW">é¯èª¤: ${entity}çæ ç¡æï¼ç¾å¨æ¯${lookedUpValue.statusId}ï¼æ該æ¯${goodStatusId}ã</value> </property> + <property key="CommonErrorSubmittingForm"> + <value xml:lang="de">Ein Fehler beim abschicken der Form ist aufgetreten.</value> + <value xml:lang="en">An error occurred submitting form.</value> + </property> <property key="CommonEventDate"> <value xml:lang="ar">تارÙØ® اÙØدث</value> <value xml:lang="de">Ereignisdatum</value> @@ -3852,10 +3872,6 @@ <value xml:lang="zh">æ¯å°æ¶</value> <value xml:lang="zh_TW">æ¯å°æ</value> </property> - <property key="CommonImage"> - <value xml:lang="en">Image</value> - <value xml:lang="th">รูà¸à¸ าà¸</value> - </property> <property key="CommonId"> <value xml:lang="ar">دÙÙÙ</value> <value xml:lang="de">ID</value> @@ -3943,6 +3959,10 @@ <value xml:lang="zh_CN">æ è¯</value> <value xml:lang="zh_TW">IDs</value> </property> + <property key="CommonImage"> + <value xml:lang="en">Image</value> + <value xml:lang="th">รูà¸à¸ าà¸</value> + </property> <property key="CommonIn"> <value xml:lang="ar">داخÙ</value> <value xml:lang="de">In</value> @@ -4591,6 +4611,10 @@ <value xml:lang="zh">ç·</value> <value xml:lang="zh_TW">ç·</value> </property> + <property key="CommonManage"> + <value xml:lang="en">Manage</value> + <value xml:lang="th">à¸à¸±à¸à¸à¸²à¸£</value> + </property> <property key="CommonManagePortalPages"> <value xml:lang="en">Manage Portal Pages...</value> <value xml:lang="fr">Gérez les pages du portail...</value> @@ -4600,10 +4624,6 @@ <value xml:lang="zh">管çé¨æ·é¡µé¢...</value> <value xml:lang="zh_TW">管çéæ¶é é¢...</value> </property> - <property key="CommonManage"> - <value xml:lang="en">Manage</value> - <value xml:lang="th">à¸à¸±à¸à¸à¸²à¸£</value> - </property> <property key="CommonManager"> <value xml:lang="ar">٠دÙر</value> <value xml:lang="de">Manager</value> @@ -5459,10 +5479,6 @@ <value xml:lang="zh_CN">å½å没æä»»å¡ï¼éè¦ä½ çå ³æ³¨ã</value> <value xml:lang="zh_TW">ç¾å¨æ²æä»»åéè¦èçã</value> </property> - <property key="CommonNoteCannotBeUpdated"> - <value xml:lang="en">Could update note data (write failure): ${errorString}</value> - <value xml:lang="it">Non è possibile aggiornare i dati della nota (scrittura fallita): ${errorString}</value> - </property> <property key="CommonNoUomConversionFound"> <value xml:lang="ar">عÙاÙØ© تØÙÙÙ ÙØدات اÙÙÙاس غÙر Ù ÙجÙدة</value> <value xml:lang="de">Die Beziehung der Einheit für die Konversion wurde nicht gefunden</value> @@ -5532,30 +5548,6 @@ <value xml:lang="hi_IN">निरà¥à¤¦à¤¿à¤·à¥à¤ नहà¥à¤ </value> <value xml:lang="pt_BR">Não AtribuÃdo</value> </property> - <property key="CommonNotifyEmailDeliveryError"> - <value xml:lang="en">Email delivery error, see error log</value> - <value xml:lang="it">Email delivery error, see error log</value> - </property> - <property key="CommonNotifyEmailInvalidBody"> - <value xml:lang="en">Invalid email body; null is not allowed</value> - <value xml:lang="it">Corpo email invalido; null non è consentito</value> - </property> - <property key="CommonNotifyEmailMessageBodyGeneratedSuccessfully"> - <value xml:lang="en">Message body generated successfully</value> - <value xml:lang="it">Corpo messaggio generato con successo</value> - </property> - <property key="CommonNotifyEmailProblemFindingTemplate"> - <value xml:lang="en">Problem finding template; see logs</value> - <value xml:lang="it">Problema nella ricerca del template; controllare i logs</value> - </property> - <property key="CommonNotifyEmailProblemProcessingTemplate"> - <value xml:lang="en">Template processing problem, see error logs</value> - <value xml:lang="it">Problema nell'esecuzione del template; controllare gli errori nei logs</value> - </property> - <property key="CommonNotifyEmailProblemReadingTemplate"> - <value xml:lang="en">Template reading problem, see error logs</value> - <value xml:lang="it">Problema nella lettura del template; controllare gli errori nei logs</value> - </property> <property key="CommonNotModifRecreat"> <value xml:lang="de">kann nur mit Neuanlage geändert werden</value> <value xml:lang="en">cannot change without re-creating</value> @@ -5661,6 +5653,10 @@ <value xml:lang="zh_CN">注é</value> <value xml:lang="zh_TW">便ç®</value> </property> + <property key="CommonNoteCannotBeUpdated"> + <value xml:lang="en">Could update note data (write failure): ${errorString}</value> + <value xml:lang="it">Non è possibile aggiornare i dati della nota (scrittura fallita): ${errorString}</value> + </property> <property key="CommonNotes"> <value xml:lang="ar">Ù Ø°Ùرات</value> <value xml:lang="de">Anmerkungen</value> @@ -5678,6 +5674,30 @@ <value xml:lang="zh_CN">注é</value> <value xml:lang="zh_TW">便ç®</value> </property> + <property key="CommonNotifyEmailDeliveryError"> + <value xml:lang="en">Email delivery error, see error log</value> + <value xml:lang="it">Email delivery error, see error log</value> + </property> + <property key="CommonNotifyEmailInvalidBody"> + <value xml:lang="en">Invalid email body; null is not allowed</value> + <value xml:lang="it">Corpo email invalido; null non è consentito</value> + </property> + <property key="CommonNotifyEmailMessageBodyGeneratedSuccessfully"> + <value xml:lang="en">Message body generated successfully</value> + <value xml:lang="it">Corpo messaggio generato con successo</value> + </property> + <property key="CommonNotifyEmailProblemFindingTemplate"> + <value xml:lang="en">Problem finding template; see logs</value> + <value xml:lang="it">Problema nella ricerca del template; controllare i logs</value> + </property> + <property key="CommonNotifyEmailProblemProcessingTemplate"> + <value xml:lang="en">Template processing problem, see error logs</value> + <value xml:lang="it">Problema nell'esecuzione del template; controllare gli errori nei logs</value> + </property> + <property key="CommonNotifyEmailProblemReadingTemplate"> + <value xml:lang="en">Template reading problem, see error logs</value> + <value xml:lang="it">Problema nella lettura del template; controllare gli errori nei logs</value> + </property> <property key="CommonNovember"> <value xml:lang="ar">ÙÙÙ٠بر</value> <value xml:lang="de">November</value> @@ -6132,6 +6152,9 @@ <value xml:lang="zh">请修æ¹ä½ çå¯ç </value> <value xml:lang="zh_TW">è«ä¿®æ¹ä½ çå¯ç¢¼</value> </property> + <property key="CommonPayment"> + <value xml:lang="en">Payment</value> + </property> <property key="CommonPaymentMethodType"> <value xml:lang="ar">ÙÙع طرÙÙØ© اÙتسدÙد</value> <value xml:lang="de">Zahlungsmethode Typ</value> @@ -6293,6 +6316,14 @@ <value xml:lang="en">please select</value> <value xml:lang="pt_BR">Por favor, selecione</value> </property> + <property key="CommonPleaseSelectAllFeaturesFirst"> + <value xml:lang="de">Bitte wählen Sie erst alle Merkmale aus.</value> + <value xml:lang="en">Please select all features first.</value> + </property> + <property key="CommonPleaseSelectAllRequiredOptions"> + <value xml:lang="de">Bitte selektieren Sie alle benötigten Optionen.</value> + <value xml:lang="en">Please select all of the required options.</value> + </property> <property key="CommonPleaseWait"> <value xml:lang="de">Bitte warten Sie ...</value> <value xml:lang="en">please wait ...</value> @@ -6403,6 +6434,10 @@ <value xml:lang="zh_CN">å好åå¤ç</value> <value xml:lang="zh_TW">åå</value> </property> + <property key="CommonPreview"> + <value xml:lang="en">Preview</value> + <value xml:lang="th">à¹à¸ªà¸à¸à¸à¸±à¸§à¸à¸¢à¹à¸²à¸</value> + </property> <property key="CommonPrevious"> <value xml:lang="ar">سابÙ</value> <value xml:lang="cs">pÅedchozÃ</value> @@ -6421,10 +6456,6 @@ <value xml:lang="zh_CN">å</value> <value xml:lang="zh_TW">ä¸ä¸å</value> </property> - <property key="CommonPreview"> - <value xml:lang="en">Preview</value> - <value xml:lang="th">à¹à¸ªà¸à¸à¸à¸±à¸§à¸à¸¢à¹à¸²à¸</value> - </property> <property key="CommonPrimaryApps"> <value xml:lang="de">Primäranwendungen</value> <value xml:lang="en">Primary Apps</value> @@ -6944,6 +6975,9 @@ <value xml:lang="zh">ç¸å ³ä¿¡æ¯</value> <value xml:lang="zh_TW">ç¸éè³è¨</value> </property> + <property key="CommonRelease"> + <value xml:lang="en">Release</value> + </property> <property key="CommonReleaseDate"> <value xml:lang="en">Release Date</value> <value xml:lang="pt_BR">Data de Lançamento</value> @@ -7030,6 +7064,10 @@ <value xml:lang="zh_CN">æ¥å</value> <value xml:lang="zh_TW">å ±å</value> </property> + <property key="CommonRequery"> + <value xml:lang="de">Erneute Abfrage</value> + <value xml:lang="en">Requery</value> + </property> <property key="CommonRequired"> <value xml:lang="ar">Ø¥Ùزا٠Ù</value> <value xml:lang="de">Notwendig</value> @@ -7685,6 +7723,10 @@ <value xml:lang="en">Return Error Service : Returning Error</value> <value xml:lang="it">Servizio ha restituito un'errore: errore restituito</value> </property> + <property key="CommonSessionTimeoutPleaseLogIn"> + <value xml:lang="de">Sie sind nicht mehr angemeldet. Bitte melden Sie sich erneut an.</value> + <value xml:lang="en">You are not logged in. Please login again.</value> + </property> <property key="CommonSet"> <value xml:lang="ar">Ùضع</value> <value xml:lang="de">Setzen</value> @@ -8889,6 +8931,10 @@ <value xml:lang="zh_CN">åä»·</value> <value xml:lang="zh_TW">å®å¹</value> </property> + <property key="CommonUnspecifiedErrorOccurred"> + <value xml:lang="de">Ein unbestimmter Fehler ist aufgetreten!</value> + <value xml:lang="en">An unspecified error occurred!</value> + </property> <property key="CommonUntil"> <value xml:lang="ar">ØتÙ</value> <value xml:lang="de">Bis</value> @@ -9333,10 +9379,6 @@ <value xml:lang="zh">è§è§é£æ ¼</value> <value xml:lang="zh_TW">è¦è¦ºé¢¨æ ¼</value> </property> - <property key="CommonVisualThemeUsage"> - <value xml:lang="en">Click on an image to have a preview, on a link to select a theme, and then on Done to validate your choice</value> - <value xml:lang="fr">Cliquer sur l'image pour afficher un aperçu, sur le lien pour sélectionner le thème puis sur terminer pour valider votre choix</value> - </property> <property key="CommonVisualThemeIdNotFound"> <value xml:lang="en">Visual Theme ID not found.</value> <value xml:lang="es">Código de tema visual no encontrado.</value> @@ -9389,6 +9431,10 @@ <value xml:lang="zh">å·²éæ©çè§è§é£æ ¼</value> <value xml:lang="zh_TW">å·²é¸æçè¦è¦ºé¢¨æ ¼</value> </property> + <property key="CommonVisualThemeUsage"> + <value xml:lang="en">Click on an image to have a preview, on a link to select a theme, and then on Done to validate your choice</value> + <value xml:lang="fr">Cliquer sur l'image pour afficher un aperçu, sur le lien pour sélectionner le thème puis sur terminer pour valider votre choix</value> + </property> <property key="CommonVisualThemes"> <value xml:lang="en">Visual Themes</value> <value xml:lang="es">Temas visuales</value> @@ -9834,24 +9880,6 @@ <value xml:lang="zh_CN">æ°æ®æºç±»å</value> <value xml:lang="zh_TW">è³ææºé¡å</value> </property> - <property key="CommonPayment"> - <value xml:lang="en">Payment</value> - </property> - <property key="CommonAuthenticate"> - <value xml:lang="en">Authenticate</value> - </property> - <property key="CommonDeferred"> - <value xml:lang="en">Deferred</value> - </property> - <property key="CommonAuthorise"> - <value xml:lang="en">Authorise</value> - </property> - <property key="CommonRelease"> - <value xml:lang="en">Release</value> - </property> - <property key="CommonAbort"> - <value xml:lang="en">Abort</value> - </property> <property key="DataSourceTypeCreate"> <value xml:lang="ar">استØداث ÙÙع ٠صدر ٠عÙÙ٠ات</value> <value xml:lang="de">Datenquelle Typ erstellen</value> @@ -10365,16 +10393,16 @@ <value xml:lang="it">Pagina portale padre</value> <value xml:lang="pt_BR">Página superior</value> </property> + <property key="FormFieldTitle_pending"> + <value xml:lang="en">Pending</value> + <value xml:lang="th">รà¸à¸à¸³à¹à¸à¸´à¸à¸à¸²à¸£</value> + </property> <property key="FormFieldTitle_portalPageName"> <value xml:lang="en">Portal page name</value> <value xml:lang="fr">Nom de page</value> <value xml:lang="it">Nome pagina portale</value> <value xml:lang="pt_BR">Nome da página do Portal</value> </property> - <property key="FormFieldTitle_pending"> - <value xml:lang="en">Pending</value> - <value xml:lang="th">รà¸à¸à¸³à¹à¸à¸´à¸à¸à¸²à¸£</value> - </property> <property key="FormFieldTitle_price"> <value xml:lang="ar">اÙسعر</value> <value xml:lang="de">Preis</value> @@ -11400,28 +11428,4 @@ <value xml:lang="zh_CN">ä¸æ</value> <value xml:lang="zh_TW">ä¸æ</value> </property> - <property key="CommonRequery"> - <value xml:lang="de">Erneute Abfrage</value> - <value xml:lang="en">Requery</value> - </property> - <property key="CommonUnspecifiedErrorOccurred"> - <value xml:lang="de">Ein unbestimmter Fehler ist aufgetreten!</value> - <value xml:lang="en">An unspecified error occurred!</value> - </property> - <property key="CommonErrorSubmittingForm"> - <value xml:lang="de">Ein Fehler beim abschicken der Form ist aufgetreten.</value> - <value xml:lang="en">An error occurred submitting form.</value> - </property> - <property key="CommonPleaseSelectAllFeaturesFirst"> - <value xml:lang="de">Bitte wählen Sie erst alle Merkmale aus.</value> - <value xml:lang="en">Please select all features first.</value> - </property> - <property key="CommonPleaseSelectAllRequiredOptions"> - <value xml:lang="de">Bitte selektieren Sie alle benötigten Optionen.</value> - <value xml:lang="en">Please select all of the required options.</value> - </property> - <property key="CommonAddressNotFound"> - <value xml:lang="de">Die Adresse wurde nicht gefunden.</value> - <value xml:lang="en">Address not found.</value> - </property> </resource> Modified: ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml?rev=1102615&r1=1102614&r2=1102615&view=diff ============================================================================== --- ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml (original) +++ ofbiz/trunk/framework/common/webcommon/WEB-INF/common-controller.xml Fri May 13 08:52:15 2011 @@ -76,6 +76,13 @@ under the License. <response name="success" type="view" value="main"/> <response name="error" type="view" value="login"/> </request-map> + <request-map uri="ajaxCheckLogin" edit="false"> + <description>Verify a user is logged in.</description> + <security https="true" auth="false"/> + <event type="java" path="org.ofbiz.webapp.control.LoginWorker" invoke="checkLogin"/> + <response name="success" type="view" value="main"/> + <response name="error" type="view" value="ajaxLogin"/> + </request-map> <request-map uri="login"> <security https="true" auth="false"/> <event type="java" path="org.ofbiz.webapp.control.LoginWorker" invoke="login"/> @@ -250,6 +257,7 @@ under the License. <view-map name="error" page="/error/error.jsp"/> <view-map name="main" type="none"/> <view-map name="login" type="screen" page="component://common/widget/CommonScreens.xml#login"/> + <view-map name="ajaxLogin" type="screen" page="component://common/widget/CommonScreens.xml#ajaxNotLoggedIn"/> <view-map name="requirePasswordChange" type="screen" page="component://common/widget/CommonScreens.xml#requirePasswordChange"/> <view-map name="forgotPassword" type="screen" page="component://common/widget/CommonScreens.xml#forgotPassword"/> <view-map name="EventMessages" type="screen" page="component://common/widget/CommonScreens.xml#EventMessages"/> Modified: ofbiz/trunk/framework/common/widget/CommonScreens.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/common/widget/CommonScreens.xml?rev=1102615&r1=1102614&r2=1102615&view=diff ============================================================================== --- ofbiz/trunk/framework/common/widget/CommonScreens.xml (original) +++ ofbiz/trunk/framework/common/widget/CommonScreens.xml Fri May 13 08:52:15 2011 @@ -449,6 +449,18 @@ under the License. </section> </screen> + <screen name="ajaxNotLoggedIn"> + <section> + <widgets> + <decorator-screen name="LookupDecorator"> + <decorator-section name="body"> + <label>${uiLabelMap.CommonSessionTimeoutPleaseLogIn}</label> + </decorator-section> + </decorator-screen> + </widgets> + </section> + </screen> + <screen name="requirePasswordChange"> <section> <widgets> Modified: ofbiz/trunk/framework/images/webapp/images/fieldlookup.js URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/images/webapp/images/fieldlookup.js?rev=1102615&r1=1102614&r2=1102615&view=diff ============================================================================== --- ofbiz/trunk/framework/images/webapp/images/fieldlookup.js (original) +++ ofbiz/trunk/framework/images/webapp/images/fieldlookup.js Fri May 13 08:52:15 2011 @@ -588,10 +588,6 @@ function lookupAjaxRequest(request) { request = request.substring(0, request.indexOf('?')); lookupId = GLOBAL_LOOKUP_REF.getReference(ACTIVATED_LOOKUP).lookupId; jQuery("#" + lookupId).load(request, arg, function(data) { - if (data.search(/loginform/) != -1) { - window.location.href = window.location.href; - return; - } modifySubmitButton(lookupId); }); } @@ -607,10 +603,6 @@ function lookupFormAjaxRequest(formActio var data = jQuery("#" + form).serialize(); data = data + "&presentation=" + GLOBAL_LOOKUP_REF.getReference(ACTIVATED_LOOKUP).presentation; jQuery("#" + lookupId).load(formAction, data, function(data) { - if (data.search(/loginform/) != -1) { - window.location.href = window.location.href; - return; - } modifySubmitButton(lookupId); }); } @@ -621,10 +613,6 @@ function lookupPaginationAjaxRequest(nav lookupId = GLOBAL_LOOKUP_REF.getReference(ACTIVATED_LOOKUP).lookupId; jQuery("#" + lookupId).load(navAction, function(data) { - if (data.search(/loginform/) != -1) { - window.location.href = window.location.href; - return; - } modifySubmitButton(lookupId); }); } Modified: ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java URL: http://svn.apache.org/viewvc/ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java?rev=1102615&r1=1102614&r2=1102615&view=diff ============================================================================== --- ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java (original) +++ ofbiz/trunk/framework/webapp/src/org/ofbiz/webapp/control/RequestHandler.java Fri May 13 08:52:15 2011 @@ -355,7 +355,12 @@ public class RequestHandler { if (!"success".equalsIgnoreCase(checkLoginReturnString)) { // previous URL already saved by event, so just do as the return says... eventReturn = checkLoginReturnString; - requestMap = requestMapMap.get("checkLogin"); + // if the request is an ajax request we don't want to return the default login check + if (!"XMLHttpRequest".equals(request.getHeader("X-Requested-With"))) { + requestMap = requestMapMap.get("checkLogin"); + } else { + requestMap = requestMapMap.get("ajaxCheckLogin"); + } } } |
Free forum by Nabble | Edit this page |