首页 \ 问答 \ JSF的使用示例(Examples of usage of JSF)

JSF的使用示例(Examples of usage of JSF)

他们是否有任何优秀的网站(以高用量为特征),使用JSF作为其后端? 我刚刚开始使用框架的基础知识。 如果我看到一些使用JSF的网站,可能我会更好地欣赏这项技术的使用。

你也可以提到使用JSF验证的好处,即使用JavaScript的浏览器端验证内容。


Are their any good websites (characterized by high usage), that use JSF for their back-end? I have just started working with the basics of the framework. If I see some websites using JSF, may be I will be able to better appreciate the use of the technology.

Also could you mention the benefits of using JSF validation viz a viz the browser side validation of content using JavaScript.


原文:https://stackoverflow.com/questions/3262256
更新时间:2023-05-03 12:05

最满意答案

当您键入PYTHONPATH时,您输入的命令适用于您的shell,而不一定是python解释器 - 这就是您收到语法错误的原因。 你想要做的是在启动解释器之前设置pythonpath。 当你设置PYTHONPATH时,你基本上给python的sys模块另一个寻找模块的路径。

就像@Blender说的那样,你会想再次启动你的终端,并且从那里开始,你需要再次输入这两个最后的命令。


When you type PYTHONPATH, you are typing in a command that is meant for your shell, not necessarily the python interpreter -- that is why you're getting a syntax error. What you want to do is set the pythonpath before you start the interpreter. When you set PYTHONPATH, you essentially give python's sys module another path in which to look for modules.

So like @Blender said, you'll want to start your terminal again, and from there, you'll want to type those two last commands again.

相关问答

更多
  • 自己用户的~/.bashrc中配置 如: export PYTHONPATH=$PYTHONPATH:/home/abc/software/program/python 以后python就会自动找到你编写的python模块了
  • 这由fenics支持小组解决了。 要在OS X上安装FEniCS,Docker是更方便的选择。 This was resolved by the fenics support group. to install FEniCS on OS X, Docker is a more convenient option.
  • 你不必设置任何一个。 PYTHONPATH可以设置为指向其中的私有库的其他目录。 如果没有设置PYTHONHOME,则Python默认使用找到python.exe的目录,以便dir应该在PATH中。 You don't have to set either of them. PYTHONPATH can be set to point to additional directories with private libraries in them. If PYTHONHOME is not set, Pyt ...
  • 像这样运行应用程序: $ cd ~/path/to/gothonweb/ python bin/app.py 但是,如果你这样做: $ cd bin/ # WRONG! WRONG! WRONG! $ python app.py # WRONG! WRONG! WRONG! 许多用户倾向于犯这个错误, 这是Zed Shaw的一个很好的解释,为什么不运行这样的应用程序! 那你做错了。 在所有python项目中,你不要进入较低的目录来运行。 您保持在顶部并从那里运行所有内容,以便所有系统都可以访问所有 ...
  • 我觉得你有点困惑。 PYTHONPATH设置用于导入 python模块的搜索路径,而不是像您正在尝试的那样执行它们。 PYTHONPATH增加模块文件的默认搜索路径。 格式与shell的PATH相同:由os.pathsep分隔的一个或多个目录路径名(例如,Unix上的冒号或Windows上的分号)。 不存在的目录被忽略。 除正常目录之外,各个PYTHONPATH条目可能指的是包含纯Python模块(以源或编译形式)的zip文件。 扩展模块无法从zip文件导入。 默认搜索路径是依赖于安装的,但通常以prefi ...
  • PYTHONPATH不会影响您是否获得SyntaxError - 只是一个ImportError 。 所以,如果你得到一个SyntaxError ,你的代码就会遇到另一个问题。 请发布代码,我们会指出它。 编辑:您的错误在此行: @app.route('/proPass', method ='POST') @指定一个装饰器,它仅在函数定义( def ),类定义( class )或其他装饰器之前的行上有效。 它显示了open行的第一个字符的错误,因为它期望在那里有一个函数或类定义。 有关装饰器的更多信息,请 ...
  • 您应该运行source ~/.bashrc命令,以便立即显示您在~/.bashrc所做的更改。 您也可以考虑将更改改为~/.bash_profile 。 然后,您不必一遍又一遍地运行source命令。 见http://goo.gl/1cxWpq 。 You should run source ~/.bashrc command in order to make the changes you made in ~/.bashrc visible immediately. You can also consid ...
  • 我建议使用像miniconda这样的python包管理器; 然后安装包 conda install blahblah 它节省了大量的时间和痛苦! 和git源可以使用pip安装(也有miniconda一样) pip install -e git://git.myproject.org/MyProject.git@master#egg=MyProject 看这里 I recommend using a python package manager like miniconda; then install ...
  • 据我所知,Apache的环境变量与系统变量无关。 尝试使用PHP的putenv()设置PYTHONPATH 或者,我对Python知之甚少,但似乎可以使用sys.path在Python脚本中设置路径,这可能会有所帮助。 As far as I know, Apache's environment variables don't correlate with the system ones. Try setting PYTHONPATH using PHP's putenv() Alternatively, ...
  • 当您键入PYTHONPATH时,您输入的命令适用于您的shell,而不一定是python解释器 - 这就是您收到语法错误的原因。 你想要做的是在启动解释器之前设置pythonpath。 当你设置PYTHONPATH时,你基本上给python的sys模块另一个寻找模块的路径。 就像@Blender说的那样,你会想再次启动你的终端,并且从那里开始,你需要再次输入这两个最后的命令。 When you type PYTHONPATH, you are typing in a command that is mean ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。