锘??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲AV无码成H人在线观看 ,久久精品国产亚洲av天美18,亚洲国产精品无码成人片久久http://m.tkk7.com/juanshuchun/category/27964.htmlNever accpet failure no matter how oftern it visits you keep on going , never give up. never~~~ zh-cnWed, 12 Dec 2007 05:28:25 GMTWed, 12 Dec 2007 05:28:25 GMT60session maphttp://m.tkk7.com/juanshuchun/articles/167041.html*涓鍑?*涓鍑?Tue, 11 Dec 2007 12:25:00 GMThttp://m.tkk7.com/juanshuchun/articles/167041.htmlsession map code1:

protected Status getDialogStatus() {
         Map sessionMap 
= FacesContext.getCurrentInstance()
            .getExternalContext()
            .getSessionMap();
         
return(Status)sessionMap.get(org.apache.shale.dialog.Globals.STATUS);
      }

session map code2:

  ChartData data = new ChartData();
  data.setWidth(width);
  data.setHeight(height);
  data.setTitle(title);
  data.setNames(names);
  data.setValues(values);

  String id 
= component.getClientId(context);
  ExternalContext external 
= FacesContext.getCurrentInstance().getExternalContext();
  Map
<String, Object> session = external.getSessionMap();
  session.put(id, data);

灝哋bject 淇濆瓨鍦╯essionscope map 閲岋紝鍙互鍦ㄩ〉闈㈠鑸埌鍏朵粬欏甸潰鏃訛紝榪樿兘緇х畫璁塊棶Object銆?br /> requestMap鎴杝essionMap 涓存椂淇濆瓨瀵硅薄銆?

*涓鍑? 2007-12-11 20:25 鍙戣〃璇勮
]]>
onchangehttp://m.tkk7.com/juanshuchun/articles/167037.html*涓鍑?*涓鍑?Tue, 11 Dec 2007 12:09:00 GMThttp://m.tkk7.com/juanshuchun/articles/167037.html   <html>
     
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
       
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      
<%@ taglib uri="http://corejsf.com/pager" prefix="corejsf" %>
  
       
<f:view>
          
<head>
             
<link href="styles.css" rel="stylesheet" type="text/css"/>
            
<title>Pager Test</title>
          
</head>
           
<body>
              
<h:form>
               
<h:dataTable id="timezones" value="#{bb.data}" var="row" rows="10">
                   
<h:column>
                     
<h:selectBooleanCheckbox value="{bb.dummy}" onchange="submit()"/>
                   
</h:column>
                   
<h:column>
                      
<h:outputText value="#{row}" />
                   
</h:column>
                
</h:dataTable>
                
<corejsf:pager dataTableId="timezones"
                   showpages
="20" selectedStyleClass="currentPage"/>
                   
<h:commandButton value="foo"/>
             
</h:form>
          
</body>
       
</f:view>
   
</html>
onchange="submit()"

*涓鍑? 2007-12-11 20:09 鍙戣〃璇勮
]]>
Event listeners can affect the JSF life cycle in one of three wayshttp://m.tkk7.com/juanshuchun/articles/167034.html*涓鍑?*涓鍑?Tue, 11 Dec 2007 11:57:00 GMThttp://m.tkk7.com/juanshuchun/articles/167034.html1.Let the life cycle proceed normally.

2.Call FacesContext.renderResponse() to skip the rest of the life cycle up to Render Response.

3.Call FacesContext.responseComplete() to skip the rest of the life cycle entirely.

See "Immediate Components" on page 287 for an example of using FacesContext.renderResponse().

  private static final String US = "United States";
  
  
public void countryChanged(ValueChangeEvent event) {
     FacesContext context 
= FacesContext.getCurrentInstance();

     
if (US.equals((String) event.getNewValue()))
        context.getViewRoot().setLocale(Locale.US);
     
else
        context.getViewRoot().setLocale(Locale.CANADA);

     context.renderResponse();
  }

The call to renderResponse() skips the rest of the life cycle鈥攊ncluding validation of the rest of the input components in the form鈥攗p to Render Response. Thus, the other validations are skipped and the response is rendered normally (in this case, the current page is redisplayed).

To summarize, you can skip validation when a value change event fires by doing the following:

  1. Adding an immediate attribute to your input tag

  2. Calling FacesContext.renderResponse() at the end of your listener


       

 涓婃枃寮曠敤錛氥奵ore JavaServer™ Faces, Second Edition銆?/span>

*涓鍑? 2007-12-11 19:57 鍙戣〃璇勮
]]>
The Syntax of Value Expressionshttp://m.tkk7.com/juanshuchun/articles/167023.html*涓鍑?*涓鍑?Tue, 11 Dec 2007 11:25:00 GMThttp://m.tkk7.com/juanshuchun/articles/167023.html
Table 2-4. Predefined Objects in the Value Expression Language
Variable Name Meaning
header A Map of HTTP header parameters, containing only the first value for each name.
headerValues A Map of HTTP header parameters, yielding a String[]array of all values for a given name.
param A Map of HTTP request parameters, containing only the first value for each name.
paramValues A Map of HTTP request parameters, yielding a String[]array of all values for a given name.
cookie A Map of the cookie names and values of the current request.
initParam A Map of the initialization parameters of this web application. Initialization parameters are discussed in Chapter 10.
requestScope A Map of all request scope attributes.
sessionScope A Map of all session scope attributes.
applicationScope A Map of all application scope attributes.
facesContext The FacesContext instance of this request. This class is discussed in Chapter 6.
view The UIViewRoot instance of this request. This class is discussed in

 Finally, if the name is still not found, it is passed to the VariableResolver of the JSF application. The default variable resolver looks up managed-bean elements in a configuration resource, typically the faces-config.xml file.

Consider, for example, the expression

  #{user.password}


The term user is not one of the predefined(棰勫畾涔? objects. When it is encountered錛堥亣鍒幫級 for the first time, it is not an attribute name in request, session, or application scope.

Therefore, the variable resolver processes the faces-config.xml entry:

  <managed-bean>
     <managed-bean-name>user</managed-bean-name>
     <managed-bean-class>com.corejsf.UserBean</managed-bean-class>
     <managed-bean-scope>session</managed-bean-scope>
  </managed-bean>


The variable resolver calls the default constructor of the class com.corejsf.User-Bean. Next, it adds an association to the sessionScope map. Finally, it returns the object as the result of the lookup.

When the term user needs to be resolved again in the same session, it is located in the session scope


Composite Expressions
    

You can use a limited set of operators inside value expressions:

Arithmetic operators + - * / %. The last two operators have alphabetic variants div and mod.

Relational operators < <= > >= == != and their alphabetic variants lt le gt ge eq ne. The first four variants are required for XML safety.

Logical operators && || ! and their alphabetic variants and or not. The first variant is required for XML safety.

The empty operator. The expression empty a is true if a is null, an array or String of length 0, or a Collection or Map of size 0.

The ternary ?: selection operator.

 Operator precedence follows the same rules as in Java. The empty operator has the same precedence as the unary - and ! operators.

 Generally, you do not want to do a lot of expression computation in web pages鈥攖hat would violate the separation of presentation and business logic. However, occasionally, the presentation layer can benefit from operators. For example, suppose you want to hide a component when the hide property of a bean is true. To hide a component, you set its rendered attribute to false. Inverting the bean value requires the ! (or not) operator:

  <h:inputText rendered="#{!bean.hide}" ... />


 

Finally, you can concatenate plain strings and value expressions by placing them next to each other. Consider, for example,

  <h:outputText value="#{messages.greeting}, #{user.name}!"/>


 

The statement concatenates four strings: the string returned from #{messages. greeting}, the string consisting of a comma and a space, the string returned from #{user.name}, and the string consisting of an exclamation mark.


        
涓婃枃鍑鴻嚜錛氥奵ore JavaServer™ Faces, Second Edition銆?/span>



*涓鍑? 2007-12-11 19:25 鍙戣〃璇勮
]]>
浣跨敤鍔ㄦ侀夋嫨鑿滃崟http://m.tkk7.com/juanshuchun/articles/167017.html*涓鍑?*涓鍑?Tue, 11 Dec 2007 11:05:00 GMThttp://m.tkk7.com/juanshuchun/articles/167017.html<h:selectOneMenu value="#{form.country}" onchange="submit()"
     valueChangeListener
="#{form.countryChanged}">
     
<f:selectItems value="#{form.countryNames}"/>
  
</h:selectOneMenu>
onchange="submit()"

<f:selectItems value="#{form.countryNames}"/>   @ Specifies items for a select one or select many component

*涓鍑? 2007-12-11 19:05 鍙戣〃璇勮
]]>
Using from-actionhttp://m.tkk7.com/juanshuchun/articles/167012.html*涓鍑?*涓鍑?Tue, 11 Dec 2007 10:52:00 GMThttp://m.tkk7.com/juanshuchun/articles/167012.htmlor two action method expressions that return the same action string.

        For example, suppose that in our quiz application, the startOverAction returns the string "again" instead of "startOver". The same string can be returned by the answerAction. To differentiate between the two navigation cases, you can use a from-action element. The contents of the element must be identical to the method expression string of the action attribute:

  <navigation-case>
     
<from-action>#{quiz.answerAction}</from-action>
     
<from-outcome>again</from-outcome>
     
<to-view-id>/again.jsp</to-view-id>
  
</navigation-case>
  
<navigation-case>
     
<from-action>#{quiz.startOverAction}</from-action>
     
<from-outcome>again</from-outcome>
     
<to-view-id>/index.jsp</to-view-id>
  
</navigation-case>
                       涓婃枃鍑鴻嚜錛氥奵ore JavaServer™ Faces, Second Edition銆?/span>

*涓鍑? 2007-12-11 18:52 鍙戣〃璇勮
]]>
浣跨敤閫氶厤絎﹀鑸?/title><link>http://m.tkk7.com/juanshuchun/articles/167010.html</link><dc:creator>*涓鍑?</dc:creator><author>*涓鍑?</author><pubDate>Tue, 11 Dec 2007 10:40:00 GMT</pubDate><guid>http://m.tkk7.com/juanshuchun/articles/167010.html</guid><description><![CDATA[<p>You can use wildcards in the from-view-id element of a navigation rule, for example:</p> <div style="border-right: #cccccc 1px solid; padding-right: 5px; border-top: #cccccc 1px solid; padding-left: 4px; font-size: 13px; padding-bottom: 4px; border-left: #cccccc 1px solid; width: 98%; word-break: break-all; padding-top: 4px; border-bottom: #cccccc 1px solid; background-color: #eeeeee"><img alt="" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" /><span style="color: #000000">  </span><span style="color: #0000ff"><</span><span style="color: #800000">navigation-rule</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />     </span><span style="color: #0000ff"><</span><span style="color: #800000">from-view-id</span><span style="color: #0000ff">></span><span style="color: #000000">/secure/*</span><span style="color: #0000ff"></</span><span style="color: #800000">from-view-id</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />     </span><span style="color: #0000ff"><</span><span style="color: #800000">navigation-case</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />        <img alt="" src="http://m.tkk7.com/Images/dot.gif" /><br /> <img alt="" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />     </span><span style="color: #0000ff"></</span><span style="color: #800000">navigation-case</span><span style="color: #0000ff">></span><span style="color: #000000"><br /> <img alt="" src="http://m.tkk7.com/images/OutliningIndicators/None.gif" align="top" />  </span><span style="color: #0000ff"></</span><span style="color: #800000">navigation-rule</span><span style="color: #0000ff">></span></div> <p>This rule applies to all pages that start with the prefix /secure/. <strong>Only a single * is allowed, and it <span style="color: red">must</span> be at the end of the ID string.</strong></p>              <span style="font-size: 10pt; color: red">     涓婃枃鍑鴻嚜錛氥奵ore JavaServer™ Faces, Second Edition銆?/span>                                                                               <img src ="http://m.tkk7.com/juanshuchun/aggbug/167010.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/juanshuchun/" target="_blank">*涓鍑?</a> 2007-12-11 18:40 <a href="http://m.tkk7.com/juanshuchun/articles/167010.html#Feedback" target="_blank" style="text-decoration:none;">鍙戣〃璇勮</a></div>]]></description></item><item><title>鎶婂鑸鍒欐斁鍦╢aces-config.xml 涔嬪http://m.tkk7.com/juanshuchun/articles/167009.html*涓鍑?*涓鍑?Tue, 11 Dec 2007 10:37:00 GMThttp://m.tkk7.com/juanshuchun/articles/167009.htmlFiles listed in the javax.faces.CONFIG_FILES initialization parameter inside WEB-INF/web.xml. For example,

<web-app>
   
<context-param>
      
<param-name>javax.faces.CONFIG_FILES</param-name>
      
<param-value>WEB-INF/navigation.xml,WEB-INF/beans.xml</param-value>
   
</context-param>
   
</web-app>

(This mechanism is attractive for builder tools because it separates navigation, beans, etc.)

navigation.xml 錛歯avigation-rule
beans.xml       錛歮anaged-bean

*涓鍑? 2007-12-11 18:37 鍙戣〃璇勮
]]>
JSF Advanced Navigation :: redirect http://m.tkk7.com/juanshuchun/articles/167008.html*涓鍑?*涓鍑?Tue, 11 Dec 2007 10:09:00 GMThttp://m.tkk7.com/juanshuchun/articles/167008.html     If you add a redirect element after to-view-id, then the JSP container terminates the current request and sends an HTTP redirect to the client. The redirect response tells the client which URL to use for the next page.

    Redirecting the page is slower than forwarding because another round trip to the browser is involved. However, the redirection gives the browser a chance to update its address field.

Figure 3-8 shows how the address field changes when you add a redirection element, as follows:

<navigation-case>
      
<from-outcome>success</from-outcome>
      
<to-view-id>/success.jsp</to-view-id>
      
<redirect/>
</navigation-case>

Without redirection, the original URL (localhost:8080/javaquiz/index.faces) is unchanged when the user moves from the /index.jsp  page to the /success.jsp face. With redirection, the browser displays the new URL (localhost:8080/ javaquiz/success.faces).

Tip

Use the redirect element for pages that the user might want to bookmark.

                                                          涓婃枃鍑鴻嚜錛氥奵ore JavaServer™ Faces, Second Edition銆?/span>

*涓鍑? 2007-12-11 18:09 鍙戣〃璇勮
]]>
JavaServer Faces: The Complete Reference http://m.tkk7.com/juanshuchun/articles/167002.html*涓鍑?*涓鍑?Tue, 11 Dec 2007 09:51:00 GMThttp://m.tkk7.com/juanshuchun/articles/167002.htmlJSF 瀹炵幇蹇呴』鐨勫簱
            鏋勫緩JSF搴旂敤紼嬪簭鏃跺繀欏葷殑鍏抽敭jar鏂囦歡鏄?jsf-api.jar 鍜?jsf-impl.jar 銆?br />              闄や簡鏍稿績JSF榪愯鏃秊ar鏂囦歡錛岃繕闇瑕佷竴浜涘叧閿殑“鍏叡”jar鏂囦歡錛坈ommons-beanutils.jar     commonscollections.jar         commons-digester.jar    commons-logging.jar 錛?br />
            
 1 # Jars for implementations of JCP standards
 2 standard.jar=local path to JSTL standard.jar
 3 jsf-impl.jar=local path to jsf-impl.jar
 4 
 5 
 7 # Jars for miscellaneous dependencies required #by Sun's JSF 1.1
 8 # implementation
 9 commons-beanutils.jar=local path to commons-beanutils.jar
10 commons-collections.jar=local path to commons-collections.jar
11 commons-digester.jar=local path to commons-digester.jar
12 commons-logging.jar=local path to commons-logging.jar


*涓鍑? 2007-12-11 17:51 鍙戣〃璇勮
]]>
主站蜘蛛池模板: 四虎影视成人永久免费观看视频| 国产AV日韩A∨亚洲AV电影| 一区二区在线免费观看| 亚洲午夜无码久久久久| 久久福利青草精品资源站免费| 亚洲日产韩国一二三四区| 十八禁视频在线观看免费无码无遮挡骂过 | 亚洲一区二区三区久久久久| 日本人的色道免费网站| 亚洲av日韩av无码av| 女性无套免费网站在线看| 狠狠综合亚洲综合亚洲色| 免费人成激情视频| 72pao国产成视频永久免费| 亚洲尤码不卡AV麻豆| 无码国产精品一区二区免费式芒果 | 亚洲欧洲中文日产| 女人18毛片免费观看| 人与动性xxxxx免费| 久久国产亚洲电影天堂| 日本免费xxxx| 亚洲av无码成人精品国产| 亚洲中文字幕无码久久精品1| 日韩精品内射视频免费观看 | 亚洲91精品麻豆国产系列在线 | 国产又黄又爽又猛的免费视频播放 | 亚洲乱理伦片在线观看中字 | 亚洲国产日韩在线一区| 日韩激情无码免费毛片| 青柠影视在线观看免费| 亚洲人成www在线播放| 亚洲精品无码99在线观看 | 亚洲AV无码一区二区三区牛牛| 国产免费啪嗒啪嗒视频看看| 久久精品无码免费不卡| 亚洲国产日韩在线| 久久久久亚洲AV无码专区网站| 1区2区3区产品乱码免费| 免费无码国产V片在线观看| 亚洲AV第一页国产精品| 日本牲交大片免费观看|