Strange behaviour on <h:selectOneMenu> in facelet

View: New views
7 Messages — Rating Filter:   Alert me  

Strange behaviour on <h:selectOneMenu> in facelet

by Herwin Limadi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
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@...

Not Using Facelet.JPG (12K) Download Attachment
Using Facelet Component Tag..JPG (7K) Download Attachment

Re: Strange behaviour on <h:selectOneMenu> in facelet

by Mike Kienenberger :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

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@...


Re: Strange behaviour on <h:selectOneMenu> in facelet

by Herwin Limadi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi 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 facelet

by Liumin Hu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
for me, binding is null is strange.
 
hope this help.
----- Original Message -----
Sent: Thursday, September 10, 2009 12:01 PM
Subject: Re: Strange behaviour on <h:selectOneMenu> in facelet

Hi 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 facelet

by Herwin Limadi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Hi 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.
----- Original Message -----
Sent: Thursday, September 10, 2009 12:01 PM
Subject: Re: Strange behaviour on <h:selectOneMenu> in facelet

Hi 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! < body>


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 facelet

by Liumin Hu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

I am using c:choose...when...otherwise for this kind problem.
----- Original Message -----
Sent: Saturday, September 19, 2009 8:32 AM
Subject: Re: Strange behaviour on <h:selectOneMenu> in facelet

Hi 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.
----- Original Message -----
Sent: Thursday, September 10, 2009 12:01 PM
Subject: Re: Strange behaviour on <h:selectOneMenu> in facelet

Hi 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! < body>


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 facelet

by Herwin Limadi :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
OK, 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.
----- Original Message -----
Sent: Saturday, September 19, 2009 8:32 AM
Subject: Re: Strange behaviour on <h:selectOneMenu> in facelet

Hi 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.
----- Original Message -----
Sent: Thursday, September 10, 2009 12:01 PM
Subject: Re: Strange behaviour on <h:selectOneMenu> in facelet

Hi 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! < body>


New Email names for you!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!


New Email names for you!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!