2009-12-14 10 views
3

Salut j'ai un problème avec <a4j:commandButton> après que je presse pour une raison quelconque tous les boutons sur cette page sont en train de changer leur stylede RichFaces avec ajax commandButton

suggestions seraient beaucoup appretiated j'ai téléchargé une vidéo qui montre mon problème @ 00:10 sec http://www.screencast.com/users/Schyzotrop/folders/Jing/media/b54aece2-4a97-45dc-99eb-76a7fbe29002 grâce

 <a4j:form id="form" ajaxSubmit="true"> 
      <a4j:commandButton id="butNC" limitToList="true" action="#{category.createSetup}" value="New Category" /> 
      <a4j:commandButton reRender="catDataScroller" onclick=""></a4j:commandButton> 
      <rich:dataTable id="categoryList" value="#{category.categoryItems}" 
          var="item" rows="10" width="100%"> 
       <f:facet name="header"> 
        <h:outputText value="Listing Category Items" /> 
       </f:facet> 
       <rich:column width="10%" style="text-align:center"> 
        <f:facet name="header"> 
         <h:outputText value="Name" /> 
        </f:facet> 
        <h:outputText value="#{item.name}" /> 
       </rich:column> 
       <rich:column width="75%"> 
        <f:facet name="header"> 
         <h:outputText value="Description"/> 
        </f:facet> 
        <h:outputText value="#{item.description}"/> 
       </rich:column> 
       <rich:column style="text-align:center"> 
        <f:facet name="header"> 
         <h:outputText value="Actions"/> 
        </f:facet> 
        <a4j:commandButton value="Show" action="#{category.detailSetup}"> 
         <f:param name="jsfcrud.currentCategory" value="#{jsfcrud_class['classes.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][category.converter].jsfcrud_invoke}"/> 
        </a4j:commandButton> 
        <h:outputText value=" "/> 
        <a4j:commandButton value="Edit" action="#{category.editSetup}"> 
         <f:param name="jsfcrud.currentCategory" value="#{jsfcrud_class['classes.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][category.converter].jsfcrud_invoke}"/> 
        </a4j:commandButton> 
        <h:outputText value=" "/> 
        <a4j:commandButton value="Destroy" limitToList="true" action="#{category.destroy}" type="submit"> 
         <%--<f:param name="jsfcrud.currentCategory" value="#{jsfcrud_class['classes.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][category.converter].jsfcrud_invoke}"/>--%> 
         <h:outputText value="#{item.categoryID}"/> 
         <h:outputText value=" #{jsfcrud_class['classes.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][category.converter].jsfcrud_invoke}"/> 
         <f:param name="catID" value="#{item.categoryID}"/> 
        </a4j:commandButton> 
       </rich:column> 
      </rich:dataTable> 
      <rich:spacer height="30" /> 
      <rich:datascroller id="catDataScroller" for="categoryList" maxPages="10"/> 
      <rich:messages style="color:red"></rich:messages> 
     </a4j:form> 
+0

quelle version de richfaces? – Bozho

+0

je pense qu'il est 3.3.0 en ajoutant la capture d'écran des bibliothèques ... http://screencast.com/t/NmZiZjY3ZGM – Schyzotrop

+0

Avez-vous essayé de spécifier 'a4j: région' autour des éléments que vous voulez rendre sur action ajax? –

Répondre

0

le chargement des riches: dataTable il attribue simplement la valeur par défaut styleClass de a4j: co mmandButton, mais lorsque vous cliquez sur tous les boutons définis sur les styles CSS par défaut. Vous n'êtes pas mentionné dans l'attribut styleClass pour a4j: commmandButton. Par exemple, prenons ceci comme exemple.

<a4j:commandButton value="Confirm" styleClass="buttonstyle prisefont15" style="width:100px; height:30px; cursor:pointer;" action="#{DraftZoneBean.confirmAction}" immediate="true" reRender="draftzoneForm"> 
                   </a4j:commandButton> 
Questions connexes