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:
Gavin Cornwell
2006-02-15 22:13:00 +00:00
parent 2f51dbacda
commit f8a8f23173
2 changed files with 24 additions and 1 deletions

View File

@@ -50,6 +50,29 @@ public class UIOutputText extends UIOutput
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
*

View File

@@ -245,7 +245,7 @@
</tr>
</table>
<script language="JavaScript1.5">
<script language="JavaScript">
function itemSelected(inputField)
{
if (inputField.selectedIndex == 0)