Doing a RichFaces/jsf project in a new job, haven’t been doing it long.
The main page has a xhtml page that has a frameset. In an ideal world it wouldn’t have but it has and it needs to stay that way, but when you log in as a certain level of user, the side frames aren’t used.
<frameset cols="#{Base.sideBars['left'].width},*,#{Base.sideBars['right'].width}" id="contentframes" >
<frame name="left" src="left.jsf" id="leftframe"/>
<frame name="center" src="center.jsf" id="centerframe" />
<frame name="right" src="right.jsf" id="rightframe" />
</frameset>
is there a ‘native’ way of changing this so that I just include the center frame, or is it just easier to change it to a jsp and put an if / else around it?
What I need is the resultant html that is like this:
<frameset cols="20,*,20" id="contentframes" >
<frame name="left" src="left.jsf" id="leftframe"/>
<frame name="center" src="center.jsf" id="centerframe" />
<frame name="right" src="right.jsf" id="rightframe" />
</frameset>
when you log in as one user, but if the other user logs in, you just include the elements that were in centerframe.jsf without any frames at all.
if else would be better. or even you can manage it by