I don't think so because it is out of JSF scope.

As I said, you can control component rendering with 'rendered' attribute. You can have expressions like:

<h:inputText id="text1" value="#{some.binding } rendered="#{mybean.text1Rendered}" />

and control rendering with a bean variable. From where that variable is obtained/maintained is not JSF scope. I you can control rendering with an XML configuration, you have to code it.

Ricardo.

On 9/25/06, Mosimann Matthias <[EMAIL PROTECTED]> wrote:
Hi Ricardo
 
So it might be in the next specs?
 
regards
Matthias


Von: Ricardo Tercero Lozano [mailto:[EMAIL PROTECTED]]
Gesendet: Montag, 25. September 2006 10:58
An: MyFaces Discussion
Betreff: Re: Configurable views via XML File

You can control attribute rendering (JSF tags) through 'rendered' property. The xml configuration has to be worked on.

Ricardo.


On 9/25/06, Mosimann Matthias <[EMAIL PROTECTED]> wrote:
Hy Everyone
 
 
I experimented a little bit with JSF with Kito Mann's book "Java Server Faces in Action". Now I'm wonder if it is possible to make a JSP(View) configurable with a simple XML File. So you will be able to disable and enable some elements with a simple XML File.
 
something like this:
 
...
<street enable=no />
<postal-zip enable=yes />
...
 
So the whole form would display only the postal zip label and input text field but not a label and an input text field for the street attribute.
 
If someone ask himself: Why this should makes sence or not. I say it makes sence. One forms can be used several times and the forms intself is highly configurable.
 
 
Has allready someone done this work?
 
regards
Matthias
 


Reply via email to