The easiest but not completely enforcible, is to create your out tld.
Define a tld that has only the JSP tags you want page authors to use.
Define your own prefix to map to this tld.
You have to realize that all the components are available and can be
rendered
in the page via Java in a managed bean.
But with a "custom" tld a JSP author cannot include a tag that is not in
the tld.
Get the original tld out of the webui-jsf.jar and edit it to taste as a
"custom" tld
as described above.
Or edit the original tld and update the jar with it and then you can use
the same
prefix as the distribution.
-rick
Jason Suplizio wrote:
> Allow me ask this another way: can we use only those components we
> choose and prevent the page authors from using components that we
> explicitly do not want them to use - for usability reasons (that only
> our usability people understand).
>
> Regards,
> Jason
>
> On 9/21/07, *Dan Labrecque* <Dan.Labrecque_at_sun.com
> <mailto:Dan.Labrecque_at_sun.com>> wrote:
>
> Woodstock currently loads some common JavaScript by default, but
> not for all components. In fact, the Dojo packaging mechanism is
> used to selectively load JavaScript. For example, if you are not
> using a Woodstock table, you won't see that particular JavaScript
> loaded in the page.
>
> Dan
>
>
> Padraig Byrne wrote:
>
>> One this note can we selectively load only displayed components.
>> Seems by looking @console in firefox that code for all are loaded
>> by woodstock head tag even if unused in page
>>
>> ----- Original Message ----
>> From: Jason Suplizio <suplizio_at_gmail.com> <mailto:suplizio_at_gmail.com>
>> To: dev_at_woodstock.dev.java.net
>> <mailto:dev_at_woodstock.dev.java.net>; users_at_woodstock.dev.java.net
>> <mailto:users_at_woodstock.dev.java.net>
>> Sent: Friday, September 21, 2007 1:00:48 AM
>> Subject: disabling components
>>
>> Hello,
>> Our usability team would like to include most of the Woodstock
>> components but would like to somehow keep developers/page authors
>> from using a few of these. Is there any way that we can disable a
>> component or prevent their usage w/out modifying the distribution?
>>
>> What do you recommend?
>>
>> Thanks in advance,
>> Jason
>>
>> --
>> "Be the change you wish to see in the world." - Mahatma Ganhdi
>>
>> "Never think that war, no matter how necessary, nor how
>> justified, is not a crime. "
>> Earnest Hemingway
>>
>
>
>
>
> --
> "Be the change you wish to see in the world." - Mahatma Ganhdi
>
> "Never think that war, no matter how necessary, nor how justified, is
> not a crime. "
> Earnest Hemingway