You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by md10024 <md...@qwizics.com> on 2008/03/07 00:36:02 UTC

Problem with tr:panelLabelAndMessage... f:facet name="help"... t:inputCalendar

Hi,
I have what seems like a bug using trinidad 1.2 with facelets I have the
tr:panelLabelandMessage component containing a t:inputCalendar and a f:facet
name="help". The problem is that the help facet gets rendered twice on the
screen (and in the HTML)

<tr:panelLabelAndMessage label="Birth Date" styleClass="labelForm"
	showRequired="true" for="dobCal">
	<f:facet name="help">
		<tr:outputText value="(mm/dd/yy)" />
	</f:facet>

	<t:inputCalendar required="true" id="dobCal" renderAsPopup="true"
	renderPopupButtonAsImage="true" value="#{signupForm.DOB}" />

</tr:panelLabelAndMessage>

---------- The relevant part of the page gets rendered with this code
-------------
<tr>
<td colspan="1" class="af_panelLabelAndMessage_help-facet">

(mm/dd/yy)

</td>
</tr>
</tbody>
</table>
<div class="x52">


(mm/dd/yy)

  <br>



</div>
</td>
</tr>
-- 
View this message in context: http://www.nabble.com/Problem-with-tr%3ApanelLabelAndMessage...-f%3Afacet-name%3D%22help%22...-t%3AinputCalendar-tp15885399p15885399.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Problem with tr:panelLabelAndMessage... f:facet name="help"... t:inputCalendar

Posted by md10024 <md...@qwizics.com>.
Thanks for confirming this. I opened a JIRA issue for it at
https://issues.apache.org/jira/browse/TRINIDAD-999
-- 
View this message in context: http://www.nabble.com/Problem-with-tr%3ApanelLabelAndMessage...-f%3Afacet-name%3D%22help%22...-t%3AinputCalendar-tp15885399p15943366.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Problem with tr:panelLabelAndMessage... f:facet name="help"... t:inputCalendar

Posted by "Glauco P. Gomes" <gl...@yahoo.com.br>.
I have the same probem.

Glauco P. Gomes

md10024 escreveu:
> For the record, the problem seems to be identified with the use of the
> "facet=help" component. I generated a workaround for this problem by doing
> something like this instead of using the help facet.
>
> 	<tr:panelLabelAndMessage label="Birth Date" styleClass="labelForm"
> 		showRequired="true" for="dobCal" inlineStyle="margin-top:2em"
> 		labelStyle="color: #2F4F4F;	font-weight: bold;	text-align: right">
>
> 		<t:inputCalendar required="true" id="dobCal" renderAsPopup="true"
> 			renderPopupButtonAsImage="true" value="#{signupForm.DOB}" />
> 		<tr:outputText value="(mm/dd/yy)"
> inlineStyle="font-family:arial;font-size:8pt;color:#669966;float:left" />
>
> 	</tr:panelLabelAndMessage>
>   



Re: Problem with tr:panelLabelAndMessage... f:facet name="help"... t:inputCalendar

Posted by md10024 <md...@qwizics.com>.
For the record, the problem seems to be identified with the use of the
"facet=help" component. I generated a workaround for this problem by doing
something like this instead of using the help facet.

	<tr:panelLabelAndMessage label="Birth Date" styleClass="labelForm"
		showRequired="true" for="dobCal" inlineStyle="margin-top:2em"
		labelStyle="color: #2F4F4F;	font-weight: bold;	text-align: right">

		<t:inputCalendar required="true" id="dobCal" renderAsPopup="true"
			renderPopupButtonAsImage="true" value="#{signupForm.DOB}" />
		<tr:outputText value="(mm/dd/yy)"
inlineStyle="font-family:arial;font-size:8pt;color:#669966;float:left" />

	</tr:panelLabelAndMessage>
-- 
View this message in context: http://www.nabble.com/Problem-with-tr%3ApanelLabelAndMessage...-f%3Afacet-name%3D%22help%22...-t%3AinputCalendar-tp15885399p15920230.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.