mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
AWC-531 and added placeholder messages folder in bundles
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@2398 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -50,6 +50,29 @@ public class UIOutputText extends UIOutput
|
|||||||
return "org.alfresco.faces.OutputText";
|
return "org.alfresco.faces.OutputText";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see javax.faces.component.StateHolder#restoreState(javax.faces.context.FacesContext, java.lang.Object)
|
||||||
|
*/
|
||||||
|
public void restoreState(FacesContext context, Object state)
|
||||||
|
{
|
||||||
|
Object values[] = (Object[])state;
|
||||||
|
// standard component attributes are restored by the super class
|
||||||
|
super.restoreState(context, values[0]);
|
||||||
|
this.encodeForJavaScript = (Boolean)values[1];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @see javax.faces.component.StateHolder#saveState(javax.faces.context.FacesContext)
|
||||||
|
*/
|
||||||
|
public Object saveState(FacesContext context)
|
||||||
|
{
|
||||||
|
Object values[] = new Object[3];
|
||||||
|
// standard component attributes are saved by the super class
|
||||||
|
values[0] = super.saveState(context);
|
||||||
|
values[1] = this.encodeForJavaScript;
|
||||||
|
return values;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets whether the text should be encoded for JavaScript consumption
|
* Sets whether the text should be encoded for JavaScript consumption
|
||||||
*
|
*
|
||||||
|
@@ -245,7 +245,7 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<script language="JavaScript1.5">
|
<script language="JavaScript">
|
||||||
function itemSelected(inputField)
|
function itemSelected(inputField)
|
||||||
{
|
{
|
||||||
if (inputField.selectedIndex == 0)
|
if (inputField.selectedIndex == 0)
|
||||||
|
Reference in New Issue
Block a user