-
1. Re: How to add element to facet
ilya_shaikovsky May 11, 2010 4:49 AM (in response to igorg)show please how you defining it using simple page definition and we'll review how to move into calendar.
-
2. Re: How to add element to facet
igorg May 11, 2010 5:46 AM (in response to ilya_shaikovsky)Hello Ilya. What mean when you write 'defining it using simple page'?. If 'it' is changeType control and simple page is final html generated, the it'll be a td cell like 'Today' control that changes to next type when it clicked. Something like that:
{code:xml}
<div onclick='Richfaces.getComponent("sintecCalendar",this).switchToNextType();return true;'
onmouseover='...' onmouseout='...' onmouseup='...' onmousedown='...'>
</div>
{code}
I want that the 'div' about, can be placed in every facet of calendar, as I see in rich:calendar example:
{code:xml}
<f:facet name="header">
<h:panelGrid columns="2" width="100%" columnClasses="width100, fake">
<h:outputText value="{calendarTypeControl}" style="font-weight:bold; text-align:left"/>
</h:panelGrid>
</f:facet>{code}
-
3. Re: How to add element to facet
ilya_shaikovsky May 11, 2010 5:55 AM (in response to igorg)I'm not sure that can see the actuall problem there. If the question is - how to make this solution reusable - define the calendar customized using that code in the facet in some facelet and use it instead of rich:calendar.
-
4. Re: How to add element to facet
igorg May 12, 2010 5:28 AM (in response to ilya_shaikovsky)My problem that calendarTypeControl variable is unknown to JSF, when I place it in JSP page.
I want the person, that uses my component, can use calendarTypeControl, exactly like user that
uses richCalendar, can use todayControl, applyControl and others. I don't see where this variable defined. Can you tell me?
Igor