How would something like this work inside, say, <h:dataTable>?  Or
maybe that's the place you decide to draw a line on what is being
supported?

Also, you might want to consider reducing potential ambiguitties a
little by surrounding the replacement text with "$...$" or "@...@"
(the latter is what Ant uses, for example).

Craig



On Mon, 3 Jan 2005 16:10:48 -0600, Heath Borders
<[EMAIL PROTECTED]> wrote:
> Here is the JSP and rendering hints I was thinking about for the
> <x:script /> tag.
> 
> JSP Example:
> 
> <h:inputText id="myInputText" value="#{bean.text}" />
> <x:script language="javascript" type="text/javascript">
> <x:scriptParameter for="myInputText" id="p_myInputText" />
> function disableMyInputText()
> {
>   var input = document.getElementById('p_myInputText');
>   input.disabled=true;
> }
> </x:script>
> 
> The language and type attributes would be optional, and default to
> "javascript" and "text/javascript" respectively.
> 
> The scriptParameter would use the UIComponent.findComponent(String)
> method to find a component within the current namingContainer with the
> given id.  The <x:script> tag would then search its bodyContent for
> any strings matching the <x:scriptParameter> id's and replace them
> with the clientId of the UIComponent from the <x:scriptParameter> for
> attribute.
> 
> This would be a simple way to include javascript (and appropriate code
> commenting and <noscript> tags for non-javascript browsers) in JSF
> code.
> 
> I'd appreciate any input on this design.
> 
> --
> -Heath Borders-Wing
> [EMAIL PROTECTED]
>

Reply via email to