Hi Werner,
I double checked the jsp and the backing bean but it just refuses to
parse the EL expression.
This is what I have done:
Jsp Code:
<t:commandLink value="Add Reminders" styleClass="linkClass"
action="#{reminderController.getExistingRemindersList}"
actionListener="#{breadCrumbNavigatorBean.updateBreadCrumb}"
rendered="#{!physicianHomeController.showRemindersMoreLink}">
<t:updateActionListener
property="#{breadCrumbNavigatorBean.displayText}"
value="#{msg['breadcrumb.label.reminders']}"/>
</t:commandLink>
In the backing bean I just defined a String property with the name
displayText.
Following is the observation:
1. The displayText in the backing bean is null. In other words the EL
expression does not get parsed resulting in a null value.
2. If a literal string is given in place of an EL expression then the
value is correctly populated in the backing bean.
3. Based on the result from point number 2 - I tried just outputting the
value of the EL expression using: <t:outputLabel
value="#{msg['breadcrumb.label.reminders']}"
styleClass="outputLabelText"/> The same expression is now parsed
properly and the value appears on the page. This means that there is
nothing wrong with the EL expression.
I am not sure what is going on? Why will <t:updateActionListener> refuse
to parse an EL expression that references a message bundle?
Regards,
Madhav
> -----Original Message-----
> From: news [mailto:[EMAIL PROTECTED] On Behalf Of Werner Punz
> Sent: Tuesday, March 06, 2007 4:10 PM
> To: [email protected]
> Subject: Re: how do you pass/set parameters upon ActionListener
execution?
>
> I had similar usescases (although not using internationalisation)
> in my current up a dozend times, the mechanism itself works,
> I can only guess here,
> first of all which myfaces version do you use and which tomahawk
version.
> I can recommend to go to the latest 1.1.5 stable and use the tomahawk
> and sandbox nightlies.
> Secondly check for typos nav.msg.remiders seems like one
> there is an "n" missing in reminders typowise, which could
> be the cause for an empty string issued.
>
> Werner
>
>
>
> Madhav Bhargava schrieb:
> > Hi Werner,
> >
> > Yes, you are right. But I still cannot get the values in my backing
> bean.
> >
> > *Jsp code:*
> >
> > <t:commandLink value="Add Reminders" styleClass="linkClass"
> > action="#{reminderController.showAddReminderScreen}"
> >
> > actionListener="#{breadCrumbNavigatorBean.updateBreadCrumb}"
> > rendered="#{!physicianHomeController.showRemindersMoreLink}">
> >
> > <t:updateActionListener
> > property="#{breadCrumbNavigatorBean.participant.displayText}"
> > value="#{msg['nav.msg.remiders']}"/>
> >
> > </t:commandLink>
> >
**************** CAUTION - Disclaimer *****************
This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely
for the use of the addressee(s). If you are not the intended recipient, please
notify the sender by e-mail and delete the original message. Further, you are
not to copy, disclose, or distribute this e-mail or its contents to any other
person and any such actions are unlawful. This e-mail may contain viruses.
Infosys has taken every reasonable precaution to minimize this risk, but is not
liable for any damage you may sustain as a result of any virus in this e-mail.
You should carry out your own virus checks before opening the e-mail or
attachment. Infosys reserves the right to monitor and review the content of all
messages sent to or from this e-mail address. Messages sent to or from this
e-mail address may be stored on the Infosys e-mail system.
***INFOSYS******** End of Disclaimer ********INFOSYS***