faces icon indicating copy to clipboard operation
faces copied to clipboard

Decoder that act as separate functionality

Open eclipse-faces-bot opened this issue 14 years ago • 8 comments

I suggest to introduce concept of decoders as functionality that works independently from rendering functionality. JSF already has dedicated Renderer class. So it makes sense to do the same thing for decoding functionality. The first benefit from this approach would be possibility to send data from client directly to decoder, skipping on the way to it necessity to use JSF components and JSF life cycle. JSF developers will be able to create more stateless JSF applications and use Javascript libraries in more flexible than now manner.

The first usage of decoder would be the following kind of scenario:

client side: jsf.ajax.post({data:

{'dataHolder.value': value1}

, render: 'input1');

server side: if (isDataRequest(context.getExternalContext().getRequestHeaderMap()))

{ Decoder.handleDataRequest(context); context.responseComplete(); }

... ValueExpression ve = getValueExpression(context, key); ve.setValue(context.getELContext(), o.get(key)); ...

Note: The first argument of the method "post" would be optional and called "url". In case if developer need to customize handling of data from client we will use this argument as way to identify decoder that will handle the data.

Complete signature of the Javascript method could be defined something like this: jsf.ajax.post([url], [data], [handleAs], [render], [onSuccess(data)], onError(data)]);

Environment

Operating System: All Platform: All

Affected Versions

[1.1]

eclipse-faces-bot avatar Aug 29 '10 20:08 eclipse-faces-bot

  • Issue Imported From: https://github.com/javaee/javaserverfaces-spec/issues/879
  • Original Issue Raised By:@glassfishrobot
  • Original Issue Assigned To: Unassigned

eclipse-faces-bot avatar Aug 06 '19 08:08 eclipse-faces-bot

@glassfishrobot Commented Reported by vladperl

eclipse-faces-bot avatar Aug 29 '10 20:08 eclipse-faces-bot

@glassfishrobot Commented vladperl said: The following link seems could be used as supporting point: http://forums.java.net/jive/thread.jspa?messageID=481227

eclipse-faces-bot avatar Aug 29 '10 20:08 eclipse-faces-bot

@glassfishrobot Commented rogerk said: triage

eclipse-faces-bot avatar Oct 27 '10 14:10 eclipse-faces-bot

@glassfishrobot Commented rogerk said: triage

eclipse-faces-bot avatar Nov 16 '10 13:11 eclipse-faces-bot

@glassfishrobot Commented @edburns said: Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

eclipse-faces-bot avatar Aug 01 '14 14:08 eclipse-faces-bot

@glassfishrobot Commented @manfredriem said: Setting priority to Minor

eclipse-faces-bot avatar Aug 01 '14 17:08 eclipse-faces-bot

@glassfishrobot Commented This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-879

eclipse-faces-bot avatar May 05 '17 05:05 eclipse-faces-bot