I believe changing the currency happens in the component, not the renderer. Then decode is called on the children, meaning the command stamp. So you shouldn't need to write a decode method in the renderer if you're encoding correctly.

See what navigationLevel is doing.

adf-faces\adf-faces-api\src\main\java\org\apache\myfaces\adf\component\UIXCollection.java
adf-faces\adf-faces-api\src\main\java-templates\org\apache\myfaces\adf\component\UIXNavigationLevelTemplate.java

Thanks,

Gabrielle

[EMAIL PROTECTED] wrote:

Hello,

I want to convert some of the menu* components to a renderkit.core.xhtml renderer. However, before doing so, I realise I lack a bit of knowledge concerning nodeStamps and MenuModels. I was wondering how the clicked item/link is detected when submitting a form. So far I could figure that when using node stamp, the rendered submitForm script will include something like the following in the simplest example:

<formId>:<hierarchyId>:<rowKey>:<itemId>

where <rowKey> is maybe the rowIndex instead? Anyway, this is what makes it important to set the current row key to a new value before re-rendering the stamp. This is, it seems, everything special that has to be done about stamp while rendering the component. However, what happens upon decoding? I cannot find when the setRowKey is called again. I guess it should be in the apply request values phase, but I don't see any class in the hierarchy of NavigationPathRenderer (the one I used to trye to figure out how it works) that override the decode method... Anyone can give me a quick cue on how it is done please?


Regards,

Simon Lessard
Fujitsu Consulting

Reply via email to