Start to implement the ajax-jsf component for exoplatform.

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.