|
View:
New views
7 Messages
—
Rating Filter:
Alert me
|
|
|
Strange behaviour on <h:selectOneMenu> in faceletDear Sir,
I tried to make component from <h:outputLabel> and <h:selectOneMenu> the snippet is:
.
.
<ui:component>
<f:loadBundle basename="resources/rb_component" var="component"/> <h:panelGrid columns="2" > <h:panelGrid columns="2"> <h:panelGrid columns="1" width="#{labelWidth}" > <h:panelGrid columns="2"> <h:outputLabel value="#{labelText}" styleClass="jsfOutputLabel"/> <h:outputLabel value="#{component['label.mandatoryFieldMarking']}" styleClass="red" rendered="#{mandatory}" /> </h:panelGrid> </h:panelGrid> <h:panelGrid columns="1" width="1" > <h:outputLabel value=":" styleClass="jsfOutputLabel" /> </h:panelGrid> </h:panelGrid> <h:selectOneMenu value="#{comboValue}" required="#{mandatory}" binding="#{comboBinding}" id="#{comboId}" > <f:selectItems value="#{comboItems}" /> </h:selectOneMenu> </h:panelGrid> </ui:component> .
.
Then on the other page I use the component with the snippet:
.
.
<camsf:labelCombo labelText="#{par['agree.label.feeType']}"
labelWidth="45" comboValue="#{bindings.AdmFeeDisbType.inputValue}" comboItems="#{camsParameter.valueTypes}" comboId="abc1" /> <camsf:labelCombo labelText="#{par['agree.label.feeStatusChange']}" labelWidth="75" comboValue="#{bindings.AdmFeeDisbChargeType.inputValue}" comboItems="#{camsParameter.feeStatusTypes}" comboId="abd2" /> .
.
But the result all the list item from the all combo are inside one combo just like "Using Facelet Component Tag..JPG" in the attachment. What I expect is like "Not Using Facelet.JPG".
So, any clue where I make mistake.
Rgds,
~Herwin
New Email names for you! Get the Email name you've always wanted on the new @ymail and @rocketmail. Hurry before someone else does! --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Strange behaviour on <h:selectOneMenu> in faceletI suspect it might be the id, but I'm not sure.
What happens if you remove id="#{comboId}" from your ui:component? Another possibility if that doesn't change anything might be to do this: <f:subview id="abc1Subview"> <camsf:labelCombo labelText="#{par['agree.label.feeType']}" labelWidth="45" comboValue="#{bindings.AdmFeeDisbType.inputValue}" comboItems="#{camsParameter.valueTypes}" comboId="abc1" /> </f:subview> On Tue, Sep 8, 2009 at 12:03 AM, Herwin Limadi<exedraone@...> wrote: > Dear Sir, > > I tried to make component from <h:outputLabel> and <h:selectOneMenu> the > snippet is: > > . > . > <ui:component> > <f:loadBundle basename="resources/rb_component" var="component"/> > <h:panelGrid columns="2" > > <h:panelGrid columns="2"> > <h:panelGrid columns="1" width="#{labelWidth}" > > <h:panelGrid columns="2"> > <h:outputLabel value="#{labelText}" > styleClass="jsfOutputLabel"/> > <h:outputLabel > value="#{component['label.mandatoryFieldMarking']}" styleClass="red" > rendered="#{mandatory}" /> > </h:panelGrid> > </h:panelGrid> > <h:panelGrid columns="1" width="1" > > <h:outputLabel value=":" styleClass="jsfOutputLabel" /> > </h:panelGrid> > </h:panelGrid> > <h:selectOneMenu value="#{comboValue}" required="#{mandatory}" > binding="#{comboBinding}" id="#{comboId}" > > <f:selectItems value="#{comboItems}" /> > </h:selectOneMenu> > </h:panelGrid> > </ui:component> > . > . > > Then on the other page I use the component with the snippet: > . > . > <camsf:labelCombo labelText="#{par['agree.label.feeType']}" > labelWidth="45" > comboValue="#{bindings.AdmFeeDisbType.inputValue}" > comboItems="#{camsParameter.valueTypes}" > comboId="abc1" /> > > <camsf:labelCombo labelText="#{par['agree.label.feeStatusChange']}" > labelWidth="75" > > comboValue="#{bindings.AdmFeeDisbChargeType.inputValue}" > comboItems="#{camsParameter.feeStatusTypes}" > comboId="abd2" /> > . > . > > But the result all the list item from the all combo are inside one combo > just like "Using Facelet Component Tag..JPG" in the attachment. What I > expect is like "Not Using Facelet.JPG". > > So, any clue where I make mistake. > > Rgds, > ~Herwin > > ________________________________ > New Email names for you! > Get the Email name you've always wanted on the new @ymail and @rocketmail. > Hurry before someone else does! > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
Re: Strange behaviour on <h:selectOneMenu> in faceletHi Mike,
None of them working, the results are the same. Is there any posibility that facelet has a bug on it?
Rgds,
~Herwin From: Mike Kienenberger <mkienenb@...> To: users@... Sent: Wednesday, 9 September 2009 4:36:52 Subject: Re: Strange behaviour on <h:selectOneMenu> in facelet I suspect it might be the id, but I'm not sure. What happens if you remove id="#{comboId}" from your ui:component? Another possibility if that doesn't change anything might be to do this: <f:subview id="abc1Subview"> <camsf:labelCombo labelText="#{par['agree.label.feeType']}" labelWidth="45" comboValue="#{bindings.AdmFeeDisbType.inputValue}" comboItems="#{camsParameter.valueTypes}" comboId="abc1" /> </f:subview> On Tue, Sep 8, 2009 at 12:03 AM, Herwin Limadi<exedraone@...> wrote: > Dear Sir, > > I tried to make component from <h:outputLabel> and <h:selectOneMenu> the > snippet is: > > . > . > <ui:component> > <f:loadBundle basename="resources/rb_component" var="component"/> > <h:panelGrid columns="2" > > <h:panelGrid columns="2"> > <h:panelGrid columns="1" width="#{labelWidth}" > > <h:panelGrid columns="2"> > <h:outputLabel value="#{labelText}" > styleClass="jsfOutputLabel"/> > <h:outputLabel > value="#{component['label.mandatoryFieldMarking']}" styleClass="red" > rendered="#{mandatory}" /> > </h:panelGrid> > </h:panelGrid> > <h:panelGrid columns="1" width="1" > > <h:outputLabel value=":" styleClass="jsfOutputLabel" /> > </h:panelGrid> > </h:panelGrid> > <h:selectOneMenu value="#{comboValue}" required="#{mandatory}" > binding="#{comboBinding}" id="#{comboId}" > > <f:selectItems value="#{comboItems}" /> > </h:selectOneMenu> > </h:panelGrid> > </ui:component> > . > . > > Then on the other page I use the component with the snippet: > . > . > <camsf:labelCombo labelText="#{par['agree.label.feeType']}" > labelWidth="45" > comboValue="#{bindings.AdmFeeDisbType.inputValue}" > comboItems="#{camsParameter.valueTypes}" > comboId="abc1" /> > > <camsf:labelCombo labelText="#{par['agree.label.feeStatusChange']}" > labelWidth="75" > > comboValue="#{bindings.AdmFeeDisbChargeType.inputValue}" > comboItems="#{camsParameter.feeStatusTypes}" > comboId="abd2" /> > . > . > > But the result all the list item from the all combo are inside one combo > just like "Using Facelet Component Tag..JPG" in the attachment. What I > expect is like "Not Using Facelet.JPG". > > So, any clue where I make mistake. > > Rgds, > ~Herwin > > ________________________________ > New Email names for you! > Get the Email name you've always wanted on the new @ymail and @rocketmail. > Hurry before someone else does! > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@... > For additional commands, e-mail: users-help@... > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... Yahoo! Toolbar is now powered with Search Assist. Download it now! |
|
|
Re: Strange behaviour on <h:selectOneMenu> in faceletfor me, binding is null is
strange.
hope this help.
|
|
|
Re: Strange behaviour on <h:selectOneMenu> in faceletHi Hu, You are right. Just now I removed the attribute binding="#{comboBinding}" from the component and it works fine now. But I've got problem that on some pages I need the attribute and not on some others. I've never tried if the binding attribute works fine. I just prepare it, becasue it will used later in the project. Is it a special case or not? Can't the attributes on a facelet component be null? Or should I make separate component base on the needed attributes? Anyway, thank you for your enlightment. I've got heavy headache about the problem for almost a week. Rgds, Herwin From: liumin HU <lhu@...> To: users@... Sent: Tuesday, 15 September 2009 8:45:56 Subject: Re: Strange behaviour on <h:selectOneMenu> in facelet for me, binding is null is
strange.
hope this help.
New Email names for you! Get the Email name you've always wanted on the new @ymail and @rocketmail. Hurry before someone else does! |
|
|
Re: Strange behaviour on <h:selectOneMenu> in faceletI am using c:choose...when...otherwise for
this kind problem.
|
|
|
Re: Strange behaviour on <h:selectOneMenu> in faceletOK, thank you for your advise Hu. I will use it when the attribute is needed later. Right now, it seems the problem is solved. Rgds, ~Herwin. From: liumin HU <lhu@...> To: users@... Sent: Monday, 21 September 2009 5:45:54 Subject: Re: Strange behaviour on <h:selectOneMenu> in facelet I am using c:choose...when...otherwise for
this kind problem.
New Email names for you! Get the Email name you've always wanted on the new @ymail and @rocketmail. Hurry before someone else does! |
| Free embeddable forum powered by Nabble | Forum Help |