From: <pus...@us...> - 2009-07-03 10:54:48
|
Revision: 3850 http://uni-d.svn.sourceforge.net/uni-d/?rev=3850&view=rev Author: pushkutza Date: 2009-07-03 10:54:37 +0000 (Fri, 03 Jul 2009) Log Message: ----------- ICT-1663 Modified Paths: -------------- trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.html trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.script Modified: trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.html =================================================================== --- trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.html 2009-07-02 08:39:54 UTC (rev 3849) +++ trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.html 2009-07-03 10:54:37 UTC (rev 3850) @@ -80,7 +80,7 @@ onchange="prop:changeComboboxSelection"/> <span jwcid="@If" condition="prop:notHiddenAnchors"> - <span jwcid="@LinkSubmit" onclick="clearValidation(this);" class="addLinkClass displayInline" + <span jwcid="@LinkSubmit" onclick="clearValidation(this);" class="displayInline addLinkClass" listener="listener:prepareReturnHandler" action="listener:runAdd" id="prop:addId"> <span key="Add"/> </span> @@ -89,7 +89,7 @@ </span> <span jwcid="@If" condition="prop:notHiddenAnchors"> - <span jwcid="display@LinkSubmit" onclick="clearValidation(this);" class="viewLinkClass displayInline" + <span jwcid="display@LinkSubmit" onclick="clearValidation(this);" class="displayInline viewLinkClass" listener="listener:prepareReturnHandler" action="listener:runView" id="prop:viewId"> <span jwcid="@If" condition="prop:comboboxOrEmbedded"> <span jwcid="@If" condition="prop:valueSet"><span class="viewLinkClassCombobox"><span Modified: trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.script =================================================================== --- trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.script 2009-07-02 08:39:54 UTC (rev 3849) +++ trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.script 2009-07-03 10:54:37 UTC (rev 3850) @@ -22,6 +22,7 @@ function changeComboSelection(element, fieldName, isFake) { + //alert("changeComboSelection"); var sel = element.options[element.selectedIndex].innerHTML; var display = searchByIdStart('display', element.parentNode.getElementsByTagName('A')); var input = searchByIdStart('inputBox', element.parentNode.getElementsByTagName('INPUT')); @@ -42,6 +43,9 @@ if (display!=null) display.innerHTML = "View"; if ( isFake ) input.value = sel; } + var toeval = 'onChangeCombobox${onchange}(element, fieldName, isFake )'; + //alert(toeval); + eval(toeval); } var formerValueForInputBox = null; @@ -239,6 +243,18 @@ return false; } + function onChangeCombobox${onchange}(element, fieldName, isFake) + { + //alert("element : " + element); + <if-not expression="onchange == null || onchange.equals('')"> + if ( window.${onchange}Combobox ) + { + return window.${onchange}Combobox(element, fieldName, isFake); + } + </if-not> + return false; + } + function ajaxReceive${onchange}(element, uoid, inputValue, displayValue, isFake, isCombo, error, arr) { <if-not expression="onchange == null || onchange.equals('')"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <max...@us...> - 2009-07-19 08:52:06
|
Revision: 3863 http://uni-d.svn.sourceforge.net/uni-d/?rev=3863&view=rev Author: max_brod Date: 2009-07-19 08:52:02 +0000 (Sun, 19 Jul 2009) Log Message: ----------- Have the text "View" translated (it appears near the link fields). Modified Paths: -------------- trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.html trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.script Modified: trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.html =================================================================== --- trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.html 2009-07-18 14:26:46 UTC (rev 3862) +++ trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.html 2009-07-19 08:52:02 UTC (rev 3863) @@ -33,7 +33,7 @@ @version $Revision$ </span> -<span jwcid="@Script" scriptAsset="asset:linkInputScript" onchange="prop:onChange"/> +<span jwcid="@Script" scriptAsset="asset:linkInputScript" onchange="prop:onChange" resolver="prop:page"/> <span jwcid="@If" condition="prop:disabled"> <span jwcid="@If" condition="prop:valueSet"> Modified: trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.script =================================================================== --- trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.script 2009-07-18 14:26:46 UTC (rev 3862) +++ trunk/Uni-d/tapestry/src/main/resources/be/unid/tapestry/components/input/unidLinkInput/UnidLinkInput.script 2009-07-19 08:52:02 UTC (rev 3863) @@ -4,8 +4,11 @@ "http://jakarta.apache.org/tapestry/dtd/Script_3_0.dtd"> <script> <input-symbol key="onchange" class="java.lang.String"/> + <input-symbol key="resolver" class="java.lang.Object" required="yes"/> + <body> <unique> + <![CDATA[ function findForm(elem) { @@ -40,7 +43,7 @@ } else { - if (display!=null) display.innerHTML = "View"; + if (display!=null) display.innerHTML = "${resolver.getMessage('View')}"; if ( isFake ) input.value = sel; } var toeval = 'onChangeCombobox${onchange}(element, fieldName, isFake )'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |