Currently, it seems that there is no good combination of ajax and jsf in open-source projects.
The ultimate goal of label library encapsulation should be to achieve industrial-level component reuse. The template language does not need to be exposed to complex javascript code during development. The ajax-tag project ajaxac and xajax are encapsulated very clean according to the two php templates.
/**
* Copyright 2005 Zervaas Enterprises (www.zervaas.com. au)
*
* Licensed under the Apache License, Version 2.0 (the "License ");
* You may not use this file before t in compliance with the License.
* You may obtain a copy of the License
*
* Http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* Distributed under the license is distributed on an "as is" basis,
* Without warranties or conditions of any kind, either express or implied.
* See the license for the specific language governing permissions and
* Limitations under the license.
*/
Require_once ('arithmejax. Class. php ');
$ Ajax = new arithmejax ();
$ Ajax-> handlerequest ();
?>
= $ Ajax-> loadjscore (true)?>
ArithmeJax
ArithmeJax is simple Ajax application used to perform server-side arithmetic.
- Source code for this file
- Source code for arithmejax Application
- Generated application JS Code
= $ Ajax-> attachWidgets (array ('F' => 'F ',
'Loperand' => 'A ',
'Roperand' => 'B ',
'Operator' => 'op ',
'Answer' => 'ans ')?>
= $ Ajax-> loadJsApp (true)?>
// Multiply. php, multiply. common. php, multiply. server. php
// Demonstrate a very basic xajax implementation with separate server and
// Client files
// Using xajax version 0.1 beta4
// Http://xajax.sourceforge.net
Require ("multiply. common. php ");
?>
Ttp: // www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd "> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
PrintJavascript ();?>
*
=
The most important work at the moment is to summarize BestPractice and Design Pattern, and avoid Anti-pattern.
Trackback: http://tb.blog.csdn.net/TrackBack.aspx? Postid = 475792