eclipse-ee4j / eclipse-ee4j/mojarra-jsf-extensions

not only encodeAll

Open
#8 5 comments 0 reactions 1 assignee Claimed by @glassfishrobot View on GitHub
Component: www ERR: Assignee Priority: Major Type: New Feature
Dominant language
Java
Stars
1
Forks
3
PR merge metrics
No merged PRs in 30d

Description

What do you think about such a system?

...

Than you look at a
public void renderList(FacesContext context)...
in the UISuggest component and in the associated renderer.
If not "." after the identifier, the encodeAll method is called instead.

We need also a client-side replacer, specific for the method called (not in the
case of encodeAll).
Maybe a naming convention could be usefull here
(UISuggest.renderList method is invoked from your javascript inside the
onreadystatechange. If not found you could call the default replacer.), or
dynafaces-config.xml file (but maybe you'd want to avoid this configuration
explosion ![](https://java.net/jira/images/icons/emoticons/wink.gif) ).

I would find this a very usefull and powerfull feature.
Another extension would be in the case where components have not such a method.
For this specific situation (maybe very common situation), you could use an Ajax
Handler interface, able to take the component in input and provide an ajax
response.

For example a handler (HtmlDataTableHandler) able to re-render only a row of a
HtmlDataTable component.

And why not adding parameters to the method call?
For example:

DynaFaces.fireAjaxTransaction(this, {render: 'suggest.renderList(5, 10), table'}});
#### Environment
Operating System: All
Platform: All
#### Affected Versions
[current]

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.