javasf@googlegroups.com
[Top] [All Lists]

Re: [javasf] [OFF] richfaces toolbar alguem pode ajudar

Subject: Re: [javasf] [OFF] richfaces toolbar alguem pode ajudar
From: "Rafael A. de Oliveira"
Date: Tue, 30 Mar 2010 15:44:24 -0300
cara ja mexi muito nel ams esta ai se puder ajudar agradeço...

    <f:view>
   
    <form >
    <f:loadBundle basename="messages" var="msgs" />
     
   <rich:toolBar height="25" itemSeparator="line">
    <rich:toolBarGroup>
    <rich:menuItem value="AddMenuItem" action="" ></rich:menuItem>
       </rich:toolBarGroup>
   </rich:toolBar> 
         
        <rich:panel>

         <!-- <a4j:commandLink value="ADD4J" = 'cadastro.jsf'"></a4j:commandLink> !-->
           
        <!-- <a4j:commandLink value="ADDVIAFACES" action="" ></a4j:commandLink> -->
           
            <rich:dataTable id="listaFuncionarios" value="#{funcionarioHandler.funcionarios}" var="funcionarios" >
       
              <f:facet name="header">
              <h:outputText value="Funcioanrios" />
          </f:facet>
                           
                <rich:column>
                    <f:facet name="header">
                        <h:outputText value="Nome" />
                    </f:facet>
                    <h:outputText value="#{funcionarios.nome}"/>
                </rich:column>

                <rich:column>
                    <f:facet name="header">
                        <h:outputText value="Ramal" />
                    </f:facet>
                    <h:outputText value="#{funcionarios.ramal}"/>
                </rich:column>
               
                <rich:column>
                    <f:facet name="header">
                        <h:outputText value="Email" />
                    </f:facet>
                    <h:outputText value="#{funcionarios.usuario.email}"/>
                </rich:column>
                       
                <rich:column>
                    <f:facet name="header">
                        <h:outputText value="Usuario" />
                    </f:facet>
                    <h:outputText value="#{funcionarios.usuario.usuario}"/>
                </rich:column>

                <rich:column>
                    <f:facet name="header">
                        <h:outputText value="Grupo" />
                    </f:facet>
                    <h:outputText value="#{funcionarios.usuario.grupoDeUsuario.nome}"/>
                </rich:column>

                <rich:column>
                    <f:facet name="header">
                        <h:outputText value="Ação" />
                    </f:facet>
                    <h:outputText value="(alterar)"></h:outputText>
                </rich:column>

            </rich:dataTable>
           
        </rich:panel>
  </form>
    </f:view>

Em 30 de março de 2010 15:40, Bruno Maomeh <brunomaomeh@xxxxxxxxx> escreveu:
cola essa index.jsp

Em 30 de março de 2010 15:27, Rafael A. de Oliveira <rafael170985@xxxxxxxxx> escreveu:

Isso mesmo quando estiver an index e acionar o botao iria para a pagina cadastro, mas isso nao esta acontecendo nao acontece nada...

Ja to ficnado desesperado e mto simples o probelma para ficar td esse tempo procurando...rsrsrs

Abraços!

Em 30 de março de 2010 15:10, Bruno Maomeh <brunomaomeh@xxxxxxxxx> escreveu:

e qual problema você teve?


<from-view-id>/sys/funcionario/index.jsp</from-view-id>
com isso você está falando que só quando estiver nessa página (...index.jsp) ele irá acionar essa navegação..
a regra é essa mesmo?

Em 30 de março de 2010 14:39, Rafael A. de Oliveira <rafael170985@xxxxxxxxx> escreveu:

Cara eo seguinte ficaria assim? ja tentei de 2 formas.....

    <a4j:commandLink action="" value="aaa" ></a4j:commandLink>
 
E assim:

      <rich:menuItem value="Label aaBotao" action=""


Meu navigation rule esta assim:

    <navigation-rule>
        <display-name>sys/funcionario/index</display-name>
        <from-view-id>/sys/funcionario/index.jsp</from-view-id>
        <navigation-case>
            <from-outcome>adicionar</from-outcome>
            <to-view-id>/sys/funcionario/cadastro.jsp</to-view-id>
        </navigation-case>
    </navigation-rule>





Em 30 de março de 2010 13:39, Bruno Maomeh <brunomaomeh@xxxxxxxxx> escreveu:

sinceramente, eu prefiro chamar via _javascript_ mesmo..

mas nesse seu caso.. acho que fazendo assim dará certo..


    <rich:toolBar height="25" itemSeparator="line">
        <rich:toolBarGroup>
            <rich:menuItem>
                <a4j:commandLink action="">
                    <h:graphicImage id="Add" value="Add.png" />
                </a4j:commandLink>

            </rich:menuItem>  
        </rich:toolBarGroup>
    </rich:toolBar>

mas creio que você terá que clicar em cima do Add.png, para a ação ser chamada..


Em 30 de março de 2010 13:30, Rafael A. de Oliveira <rafael170985@xxxxxxxxx> escreveu:

Eh bruno talvez seja isso mesmo, e que pensei em não fazer via _javascript_...

Se eu fizese uma navigation-rule tem como apartir do evento do command link ou o que quer que seja envia para a pagina?

Olha rafael pensei nisso...abaixo:

        <rich:toolBar height="25" itemSeparator="line">
        <rich:toolBarGroup>
            <h:graphicImage id="Add" value="Add.png" />
                    ???????? Aqui que não sei o que colocar ????
        </rich:menuItem>  
        </rich:toolBarGroup>
    </rich:toolBar>

Em 30 de março de 2010 13:21, Bruno Maomeh <brunomaomeh@xxxxxxxxx> escreveu:
vc não pode fazer um request normal? = 'tuaPagina.faces'"
algo assim.. ?

Em 30 de março de 2010 12:23, Rafael Trindade Chiappetta <rafaeltscs@xxxxxxxxx> escreveu:

como está o código da sua toolbox?

=====
Rafael Trindade Chiappetta




On Tue, Mar 30, 2010 at 11:44 AM, Rafael A. de Oliveira <rafael170985@xxxxxxxxx> wrote:
Sim sim ja vi estes exemplo ams como eu faço a ação deste botão chamar outra pagina..

2010/3/30 Bruno Hahn Barreto <brunohahn@xxxxxxxxxxx>

Oi Rafael,

Dá uma olhada na página de DEMOS do richfaces;

http://livedemo.exadel.com/richfaces-demo/richfaces/toolBar.jsf;jsessionid=6708E70673CA78649E9CB2341E840633?c=toolBar&tab=usage

lá tem um exemplo de uso da toolbar:

 


Transforme-se em personagens engraçados. Conheça o novo site de I Love Messenger.

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
-----------------------------------
Rafael A. de Oliveira
Analista de Sistemas.
(11) 8197-0270

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
Bruno Maomeh
  http://brunomaomeh.wordpress.com

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
-----------------------------------
Rafael A. de Oliveira
Analista de Sistemas.
(11) 8197-0270

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
Bruno Maomeh
  http://brunomaomeh.wordpress.com

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
-----------------------------------
Rafael A. de Oliveira
Analista de Sistemas.
(11) 8197-0270

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
Bruno Maomeh
  http://brunomaomeh.wordpress.com

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
-----------------------------------
Rafael A. de Oliveira
Analista de Sistemas.
(11) 8197-0270

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
Bruno Maomeh
  http://brunomaomeh.wordpress.com

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.



--
-----------------------------------
Rafael A. de Oliveira
Analista de Sistemas.
(11) 8197-0270

--
http://groups.google.com/group/javasf
 
You received this message because you are subscribed to the Google
Groups "javasf: JavaServer Faces Group" group.
To post to this group, send email to javasf@xxxxxxxxxxxxxxxx
 
To unsubscribe from this group, send email to javasf+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.
<Prev in Thread] Current Thread [Next in Thread>