<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Messages posted by "Lupos"]]></title>
		<link>http://forum.mentaframework.org/posts/listByUser/354.page</link>
		<description><![CDATA[Messages posted by "Lupos"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Re:Ajax como passar parametros dinamicamente?</title>
				<description><![CDATA[ cara to tentando da forma que você me orientou, mas mesmo assim não esta dando certo... eu tb sou muito fraco em js  :oops: ..  me diz uma coisa, passando o this.value entre paranteses na chamada, o resto permanece como está ... ou seja no addParameter("value",  mtw.getValue("prog")) ???]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1944/15259.page#15259</guid>
				<link>http://forum.mentaframework.org/posts/preList/1944/15259.page#15259</link>
				<pubDate><![CDATA[Tue, 29 Apr 2008 09:34:45]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Re:Ajax como passar parametros dinamicamente?</title>
				<description><![CDATA[ o robert valeu pela atenção...... então ja fiz assim também porem não esta funcionando..... o problema é que montei as varias tag com o mesmo id

  <span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;ul&gt;&lt;li&gt;&lt;a  name="prog" id="prog" value="0012'"&gt;  Compras &lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;ul&gt;&lt;li&gt;&lt;a  name="prog" id="prog" value=''0014"&gt;  Vendas &lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;ul&gt;&lt;li&gt;&lt;a  name="prog" id="prog" value=''0015"&gt;  Estoque &lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;
&lt;ul&gt;&lt;li&gt;&lt;a  name="prog" id="prog" value=''0016"&gt;  Financeiro &lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;

</pre>
		</div>

   então na função js , quando vai incluir o parametro , por mais que eu clico em "financeiro" ele sempre trás o valor de compras "0012" que é o primeiro da lista de Menu da pagina....................., para resolver isso cada tag teria que ter um id unico certo ???? se for... como eu poderia adicionar o indentificador do id para passar o valor para action ????.....   pois na função addParameter("????","???") eu declaro isso fixo.



]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1944/15221.page#15221</guid>
				<link>http://forum.mentaframework.org/posts/preList/1944/15221.page#15221</link>
				<pubDate><![CDATA[Fri, 25 Apr 2008 14:18:52]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Re:Propriedade value do componente inputDate</title>
				<description><![CDATA[ faço assim...... , no output uso a referencia a propriedade nome da tag InputDate

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;DIV style="width:100px; float: left; margin: 2px;"&gt;
                          &lt;mtw:inputDate name="dtaInicio" id="dtaInicio" size="10" 
                                       textAlign="right" dateFormat="dd/mm/yyyy"
                                       klassStyle="border:1px solid black" title="Informe a data de Inicio"
                                       titleButton="Clique para abrir o calendário" /&gt;
                        &lt;/DIV&gt; 
                        &lt;DIV style="width: 75px; float: left; margin: 2px;"&gt;
                          &lt;LABEL style="width:30px;" class="mtwLabel"&gt;Data&nbsp;Final&lt;/LABEL&gt;
                        &lt;/DIV&gt;
                        &lt;DIV style="width:100px; float: left; margin: 2px;"&gt;
                            &lt;mtw:inputDate name="dtaFinal" id="dtaFinal" size="10" 
                                           textAlign="right" dateFormat="dd/mm/yyyy"
                                           klassStyle="border:1px solid black" title="Informe a data final"
                                           titleButton="Clique para abrir o calendário" /&gt;               
                        &lt;/DIV&gt;        
</pre>
		</div>

 e na minha Action
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
 output.setValue&#40;"dtaInicio",d1&#41;; 
 output.setValue&#40;"dtaFinal",d2&#41;;     
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1948/15212.page#15212</guid>
				<link>http://forum.mentaframework.org/posts/preList/1948/15212.page#15212</link>
				<pubDate><![CDATA[Fri, 25 Apr 2008 11:01:00]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Re:Ajax com DAO problemas![RESOLVIDO]</title>
				<description><![CDATA[ é isso mesmo robert ....  flavio eu uso Hibernate com Annotation ai no meu AppManager fica assim juntamente com o restante dos filtros comuns.   

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
 List&lt;Filter&gt; common = new ArrayList&lt;Filter&gt;&#40;&#41;;
         
        common.add&#40;new ValidatorFilter&#40;&#41;&#41;;
        common.add&#40;new ConverterFilter&#40;&#41;&#41;;
        common.add&#40;new IoCFilter&#40;aplicacaoDAO, "aplicacaoDAO", REQUEST&#41;&#41;;        
        common.add&#40;new IoCFilter&#40;usuarioDAO, "usuarioDAO", REQUEST&#41;&#41;;
        common.add&#40;new IoCFilter&#40;tituloMenuDAO, "tituloMenuDAO", REQUEST&#41;&#41;;           
        common.add&#40;new IoCFilter&#40;menuDAO, "menuDAO", REQUEST&#41;&#41;;   
        common.add&#40;new IoCFilter&#40;filialDAO,"filialDAO",REQUEST&#41;&#41;;
        common.add&#40;new IoCFilter&#40;fornecedorDAO,"fornecedorDAO",REQUEST&#41;&#41;;        
        common.add&#40;new IoCFilter&#40;produtoDAO,"produtoDAO",REQUEST&#41;&#41;;        
        common.add&#40;new IoCFilter&#40;clienteDAO,"clienteDAO",REQUEST&#41;&#41;;                
        common.add&#40;new IoCFilter&#40;vendedorDAO,"vendedorDAO",REQUEST&#41;&#41;;                        
        common.add&#40;new HibernateFilter&#40;sessionFactory&#41;&#41;;
        common.add&#40;new DIFilter&#40;&#41;&#41;;
        common.add&#40;new InjectionFilter&#40;&#41;&#41;;
</pre>
		</div>
]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1942/15211.page#15211</guid>
				<link>http://forum.mentaframework.org/posts/preList/1942/15211.page#15211</link>
				<pubDate><![CDATA[Fri, 25 Apr 2008 10:45:48]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Ajax como passar parametros dinamicamente?</title>
				<description><![CDATA[ Bom agora minha duvida é a seguinte... na minha aplicação contem um menu lateral... toda vez que usuario escolhe um novo item passo os paramentros necessários junto com url através do <b>addParameter</b>  .. ai ele pode adentrar um nivel ou voltar ao nivel superior : porem não consigo recuperar os dados do parametros na minha action <b>input.getStringValue("prog")</b> so vem null ... alguem sabe dizer se dessa forma funciona ????

action
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>

      String prg = input.getStringValue&#40;"prog"&#41;;
        
        Aplicacao aplicacao = new Aplicacao&#40;&#41;;
        aplicacao.setUsuario&#40;&#40;String&#41; getUserSession&#40;&#41;&#41;;
        aplicacao.setPrograma&#40;prg&#41;;

       List&lt;Aplicacao&gt; apps = aplicacaoDAO.findByList&#40;aplicacao,"ordem"&#41;;
       StringBuffer sb = new StringBuffer&#40;&#41;;
        

        for &#40;Aplicacao a : apps&#41; {
	  sb.append&#40;"&lt;ul&gt;&lt;li&gt;&lt;a  id='prog' value='" + a.getPrograma&#40;&#41; + "'&gt;" + a.getTitulo&#40;&#41;.getDescricao&#40;&#41; + "&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;"&#41;; 
	}        
             
        output.setValue&#40;AjaxConsequence.KEY, sb.toString&#40;&#41;&#41;;
        return SUCCESS;
</pre>
		</div>

JSP (Função js)
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
			&lt;script type="text/javascript"&gt;
			function loadListBean&#40;&#41;{
				var r = new mtw.request&#40;&#41;;
				r.setUrl&#40;"MenuAction.getListBean.mtw"&#41;;
				r.onSuccess&#40;getListBean&#41;;
                                r.addParameter&#40;"value", mtw.getValue&#40;"prog"&#41;&#41;;
				r.useLoadingMessage&#40;"Carregando Menu, Aguarde..."&#41;;
				r.send&#40;&#41;;
			}
			
			function getListBean&#40;trans&#41;{
				var data = new mtw.response&#40;trans&#41;;
				document.getElementById&#40;"getListBeanDiv"&#41;.innerHTML = data.getString&#40;&#41;;
			}
			&lt;/script&gt;
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1944/15196.page#15196</guid>
				<link>http://forum.mentaframework.org/posts/preList/1944/15196.page#15196</link>
				<pubDate><![CDATA[Tue, 22 Apr 2008 18:17:50]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Re:Ajax com DAO problemas!</title>
				<description><![CDATA[ agora funcionou... eu apenas coloquei no meu ApplicationManager o filtro. descuido meu. :lol:  :oops: .heheheheheh

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>  
        action&#40;MenuAction.class, "getListBean"&#41;.ajaxOk&#40;new JSONGenericRenderer&#40;1&#41;&#41;
        .filter&#40;common&#41;;

</pre>
		</div>

]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1942/15195.page#15195</guid>
				<link>http://forum.mentaframework.org/posts/preList/1942/15195.page#15195</link>
				<pubDate><![CDATA[Tue, 22 Apr 2008 10:57:13]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Re:Ajax com DAO problemas!</title>
				<description><![CDATA[ putz... o tomcat tá lançando esse erro cavernoso...

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>2008-04-18 18:05:26,191 &#91;http-8084-Processor22&#93; ERROR  org.apache.catalina.core.ContainerBase.&#91;Catalina&#93;.&#91;localhost&#93;.&#91;/empresa
&#93;.&#91;Controller&#93; - Servlet.service&#40;&#41; for servlet Controller threw exception
java.lang.NullPointerException
        at empresa.menu.action.MenuAction.sendBean&#40;MenuAction.java:173&#41;
        at sun.reflect.NativeMethodAccessorImpl.invoke0&#40;Native Method&#41;
        at sun.reflect.NativeMethodAccessorImpl.invoke&#40;NativeMethodAccessorImpl.java:39&#41;
        at sun.reflect.DelegatingMethodAccessorImpl.invoke&#40;DelegatingMethodAccessorImpl.java:25&#41;
        at java.lang.reflect.Method.invoke&#40;Method.java:585&#41;
        at org.mentawai.core.InvocationChain.invoke&#40;InvocationChain.java:278&#41;
        at org.mentawai.filter.InjectionFilter.filter&#40;InjectionFilter.java:120&#41;
        at org.mentawai.core.InvocationChain.invoke&#40;InvocationChain.java:137&#41;
        at org.mentawai.filter.AuthenticationFilter.filter&#40;AuthenticationFilter.java:125&#41;
        at org.mentawai.core.InvocationChain.invoke&#40;InvocationChain.java:137&#41;
        at org.mentawai.filter.ValidatorFilter.filter&#40;ValidatorFilter.java:154&#41;
        at org.mentawai.core.InvocationChain.invoke&#40;InvocationChain.java:137&#41;
        at org.mentawai.core.Controller.invokeAction&#40;Controller.java:654&#41;
        at org.mentawai.core.Controller.service&#40;Controller.java:519&#41;
        at javax.servlet.http.HttpServlet.service&#40;HttpServlet.java:802&#41;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter&#40;ApplicationFilterChain.java:252&#41;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter&#40;ApplicationFilterChain.java:173&#41;
        at org.displaytag.filter.ResponseOverrideFilter.doFilter&#40;ResponseOverrideFilter.java:125&#41;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter&#40;ApplicationFilterChain.java:202&#41;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter&#40;ApplicationFilterChain.java:173&#41;
        at com.opensymphony.module.sitemesh.filter.PageFilter.parsePage&#40;PageFilter.java:118&#41;
        at com.opensymphony.module.sitemesh.filter.PageFilter.doFilter&#40;PageFilter.java:52&#41;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter&#40;ApplicationFilterChain.java:202&#41;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter&#40;ApplicationFilterChain.java:173&#41;
        at org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter&#40;MonitorFilter.java:368&#41;
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter&#40;ApplicationFilterChain.java:202&#41;
        at org.apache.catalina.core.ApplicationFilterChain.doFilter&#40;ApplicationFilterChain.java:173&#41;
        at org.apache.catalina.core.StandardWrapperValve.invoke&#40;StandardWrapperValve.java:213&#41;
        at org.apache.catalina.core.StandardContextValve.invoke&#40;StandardContextValve.java:178&#41;
        at org.apache.catalina.core.StandardHostValve.invoke&#40;StandardHostValve.java:126&#41;
        at org.apache.catalina.valves.ErrorReportValve.invoke&#40;ErrorReportValve.java:105&#41;
        at org.apache.catalina.core.StandardEngineValve.invoke&#40;StandardEngineValve.java:107&#41;
        at org.apache.catalina.connector.CoyoteAdapter.service&#40;CoyoteAdapter.java:148&#41;
        at org.apache.coyote.http11.Http11Processor.process&#40;Http11Processor.java:869&#41;
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection&#40;Http11BaseProtocol.java:664&#41;
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket&#40;PoolTcpEndpoint.java:527&#41;
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt&#40;LeaderFollowerWorkerThread.java:80&#41;
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run&#40;ThreadPool.java:684&#41;
        at java.lang.Thread.run&#40;Thread.java:595&#41;
</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1942/15184.page#15184</guid>
				<link>http://forum.mentaframework.org/posts/preList/1942/15184.page#15184</link>
				<pubDate><![CDATA[Fri, 18 Apr 2008 17:09:59]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Ajax com DAO problemas![RESOLVIDO]</title>
				<description><![CDATA[ Se eu tentar acessar o banco utilizando qualquer função DAO, acontece esse erro postado logo abaixo... , mas <b>somente quando a chamada da action é pela função js .</b> caso contrário tudo funciona perfeitamente.

 ... Debugando o problema acontece exatamente nesse ponto dentro da action :
 
<b> List&lt;Aplicacao&gt; apps = aplicacaoDAO.findByList(aplicacao,"ordem");</b>


   alguém pode me dá uma mão ?????

 Valeu
  
  PS:  me basei no F.A.Q do robert.     

JSP
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>&lt;script type="text/javascript"&gt;
			function loadListBean&#40;&#41;{
				var r = new mtw.request&#40;&#41;;
				r.setUrl&#40;"MenuAction.getListBean.mtw"&#41;;
				r.onSuccess&#40;getListBean&#41;;
				r.useLoadingMessage&#40;"Carregando Menu, Aguarde..."&#41;;
				r.send&#40;&#41;;
			}
			
			function getListBean&#40;trans&#41;{
				var data = new mtw.response&#40;trans&#41;;
				var msg = "";
				var menu;
				for&#40;var index=0; index&lt;data.size&#40;&#41;; index++&#41; {
					menu = data.getObject&#40;index&#41;;
					msg += menu.programa + "&gt;&lt;br&gt; &lt;br&gt;";
					
				}
				document.getElementById&#40;"getListBeanDiv"&#41;.innerHTML = msg;
			}
			&lt;/script&gt;
			&lt;input type="button" value="LoadListBean" onclick="loadListBean&#40;&#41;;"&gt;
			&lt;input type="button" value="Limpar"
				onclick="$&#40;'getListBeanDiv'&#41;.innerHTML=''"&gt;
			&lt;div id="getListBeanDiv"&gt;&lt;/div&gt;
</pre>
		</div>

AppMan
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>action&#40;MenuAction.class, "getListBean"&#41;.ajaxOk&#40;new JSONGenericRenderer&#40;1&#41;&#41;;</pre>
		</div>

Action
<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>   public String getListBean&#40;&#41; {
       
                Aplicacao aplicacao = new Aplicacao&#40;&#41;;
                aplicacao.setUsuario&#40;&#40;String&#41; getUserSession&#40;&#41;&#41;;
                aplicacao.setMenu&#40;12&#41;;
                
                List&lt;Aplicacao&gt; apps = aplicacaoDAO.findByList&#40;aplicacao,"ordem"&#41;;
                
                
		output.setValue&#40;AjaxConsequence.KEY, apps&#41;;
		return SUCCESS;
  }</pre>
		</div>


]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1942/15183.page#15183</guid>
				<link>http://forum.mentaframework.org/posts/preList/1942/15183.page#15183</link>
				<pubDate><![CDATA[Fri, 18 Apr 2008 15:53:03]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Re:33) MentaAjax: Framework em JS do Mentawai para trabalhar facilmente com Ajax no client-side!</title>
				<description><![CDATA[ Parabéns Robert.... ótimo trabalho... dá gosto de ver.]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1418/15150.page#15150</guid>
				<link>http://forum.mentaframework.org/posts/preList/1418/15150.page#15150</link>
				<pubDate><![CDATA[Tue, 15 Apr 2008 10:55:55]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Re:JBoleto</title>
				<description><![CDATA[ para mim também.... :D 

 luposmf at gmail.com

  Valeu.
  ]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1935/15149.page#15149</guid>
				<link>http://forum.mentaframework.org/posts/preList/1935/15149.page#15149</link>
				<pubDate><![CDATA[Tue, 15 Apr 2008 09:18:53]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Re:obtendo dados do input[RESOLVIDO]</title>
				<description><![CDATA[ Ok.... entendido.... obrigado pela dica. vou seguir.... ]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1919/15077.page#15077</guid>
				<link>http://forum.mentaframework.org/posts/preList/1919/15077.page#15077</link>
				<pubDate><![CDATA[Thu, 3 Apr 2008 10:40:41]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Re:obtendo dados do input</title>
				<description><![CDATA[ eita.... realmente ... o problema era na forma como eu estava submetendo... fiz um teste simples aqui dessa forma e funcionou legal.... o IceWolf obrigado pela dica.....valeu pela experiencia.. obrigado a todos pelo tempo dispensado.... vou me inteirar mais.....

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>&lt;a&gt;&lt;INPUT type="submit" class="mtwButton" value="buscar" title="Pesquisar Cliente" /&gt; &lt;/a&gt;</pre>
		</div>]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1919/15073.page#15073</guid>
				<link>http://forum.mentaframework.org/posts/preList/1919/15073.page#15073</link>
				<pubDate><![CDATA[Thu, 3 Apr 2008 10:17:53]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Re:obtendo dados do input</title>
				<description><![CDATA[ <p></p>

		<cite>klarq wrote:</cite><br>
		<blockquote>Tenta

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>String empresa = &#40;String&#41; input.getValue&#40;"empresa"&#41;</pre>
		</div>&nbsp;
		</blockquote>

  não funciona nem dessa forma.  ]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1919/15069.page#15069</guid>
				<link>http://forum.mentaframework.org/posts/preList/1919/15069.page#15069</link>
				<pubDate><![CDATA[Thu, 3 Apr 2008 09:23:21]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Re:obtendo dados do input</title>
				<description><![CDATA[ <p></p>

		<cite>IceW0lf wrote:</cite><br>
		<blockquote>Lupos,


1 - Qual o processo dessa página, o que ela recebe e o que deveria enviar  ?

2 - Tenha CERTEZA que tem VALOR NO CAMPO a ser enviado existe... como 1,2,3,4,....n

Vi que ela tem um ONCLOSE ????

<mtw:formSkin name="frm" method="POST" 
                 action="ClienteAction.show.mtw" 
                 caption="Cadastro de Clientes" 
                 <b>btnCloseOnclick="window.close()" 
                 btnCloseTitle="fechar browser"</b>                 >

Não entendi seu processo entendi o seu problema, mas pelo visto vc deve estar fazendo algo de errado ai.

 Se vc estiver FECHANDO o browser antes e enviando o form vai dar merda capitão!

&nbsp;
		</blockquote>
  
  ........ não... não.....  é so um cadastro simples.... geralmente uso esse padrão em todos meus forms.......eu carrego o jsp , to usando template do menta , depois preencho alguns campos chaves  e click no botão para buscar o cliente... 

 o problema é no jsp... olha ele inteiro ai

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>&lt;%@ taglib uri="/WEB-INF/lib/mentawai.jar" prefix="mtw" %&gt;
&lt;mtw:requiresAuthentication /&gt;

&lt;html&gt;
    &lt;head&gt;
        &lt;meta http-equiv="Content-Type" content="text/html; charset=UTF-8"&gt;
        &lt;title&gt;&lt;/title&gt;
       &lt;mtw:inputMaskConfig /&gt;
       &lt;mtw:formSkinConfig skin="xClear"/&gt;
       &lt;mtw:tabPanelConfig /&gt;

    &lt;/head&gt;
    &lt;body&gt;
        &lt;mtw:hasError&gt;
        &lt;font class="error"&gt;&lt;mtw:error /&gt;&lt;/font&gt;
        
&lt;/br&gt;
    &lt;/mtw:hasError&gt;  
    
          &lt;DIV style="width:650px;padding-top:1%"&gt;
        
            
               &lt;mtw:formSkin name="frm" method="POST" 
                action="ClienteAction.show.mtw" 
                caption="Cadastro de Clientes" 
                btnCloseOnclick="window.close&#40;&#41;" 
                btnCloseTitle="fechar browser"
                &gt;
     
                    
              

   
             &lt;mtw:input type="hidden" name="id" /&gt;      
             
             &lt;DIV style="width: 550px; heigth: auto;"&gt;
                 
                &lt;DIV style="width: 40px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:40px;" class="mtwLabel"&gt;Filial&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:30px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="filial" maxlength="2" size="1" style="border:1px solid black"/&gt;    
                &lt;/DIV&gt;    
                
                &lt;DIV style="width: 60px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:50px;" class="mtwLabel"&gt;Empresa&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:30px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="empresa" maxlength="2" size="1" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;    

                &lt;DIV style="width: 48px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:50px;" class="mtwLabel"&gt;Codigo&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:80px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="codigo" maxlength="8" size="10" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;    
                
                &lt;DIV style="width: 30px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:30px;" class="mtwLabel"&gt;CPF&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:110px; float: left; margin: 2px;"&gt;
                  &lt;mtw:inputMask maskDefined="CPF" name="cgc" klassStyle="border:1px solid black" title="Informe o cpf" size="15"/&gt; 
                &lt;/DIV&gt;   
                    &lt;a href ="&lt;mtw:contextPath /&gt;/ClienteAction.show.mtw" onclick="formSubmit&#40;&#41;;"&gt;&lt;img src="&lt;mtw:contextPath /&gt;/images/search.png" alt="Pesquisa" title="pesquisar cliente" /&gt;&lt;/a&gt;

                 &lt;BR&gt;
                 
                 &lt;DIV style="width: 40px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:40px;" class="mtwLabel"&gt;Nome&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:320px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="razao_social" maxlength="50" size="50" klass="textFieldSearch" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;    
                
                 &lt;DIV style="width: 60px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:30px;" class="mtwLabel"&gt;Fantasia&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:10px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="nome" maxlength="15" size="12" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                
                 &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;                
                
                 &lt;fieldset class="mtwFieldSet"&gt;
                &lt;legend class="mtwLegend"&gt;&lt;font size="2"&gt;Endereço de Entrega&lt;/font&gt;&lt;/legend&gt;
                
                  &lt;BR&gt;                
                 &lt;DIV style="width: 60px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:50px;" class="mtwLabel"&gt;Contato&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:80px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="entcontato" maxlength="15" size="10" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                
                
                 &lt;DIV style="width: 80px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:30px;" class="mtwLabel"&gt;Logradouro&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:40px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="entender" maxlength="40" size="30" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                
                &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;       

                 &lt;DIV style="width: 45px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:50px;" class="mtwLabel"&gt;Bairro&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:80px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="entbairro" maxlength="15" size="10" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                
                 &lt;DIV style="width: 50px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:50px;" class="mtwLabel"&gt;Cidade&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:80px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="entcidade" maxlength="15" size="10" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                

                 &lt;DIV style="width: 20px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:40px;" class="mtwLabel"&gt;Uf&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:35px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="entestado" maxlength="2" size="1" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                
                 &lt;DIV style="width: 30px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:50px;" class="mtwLabel"&gt;Cep&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:80px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="entcep" maxlength="15" size="10" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                 &lt;p&gt;
                 &lt;BR&gt;
                &lt;/fieldset&gt;
                
                &lt;BR&gt;    
                
                 &lt;fieldset class="mtwFieldSet"&gt;
                &lt;legend class="mtwLegend"&gt;&lt;font size="2"&gt;Endereço de Cobrança&lt;/font&gt;&lt;/legend&gt;

                  &lt;BR&gt;                
                 &lt;DIV style="width: 60px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:50px;" class="mtwLabel"&gt;Contato&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:80px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="cobcontato" maxlength="15" size="10" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                
                
                 &lt;DIV style="width: 80px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:30px;" class="mtwLabel"&gt;Logradouro&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:40px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="cobender" maxlength="40" size="30" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                
                &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;       

                 &lt;DIV style="width: 45px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:50px;" class="mtwLabel"&gt;Bairro&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:80px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="cobbairro" maxlength="15" size="10" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                
                 &lt;DIV style="width: 50px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:50px;" class="mtwLabel"&gt;Cidade&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:80px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="cobcidade" maxlength="15" size="10" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                

                 &lt;DIV style="width: 20px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:40px;" class="mtwLabel"&gt;Uf&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:35px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="cobestado" maxlength="2" size="1" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                
                 &lt;DIV style="width: 30px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:50px;" class="mtwLabel"&gt;Cep&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:80px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="cobcep" maxlength="15" size="10" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                &lt;p&gt;
                &lt;BR&gt;
                &lt;/fieldset&gt;
                
                &lt;BR&gt;&lt;BR&gt;&lt;p&gt;
                
                &lt;DIV style="width: 140px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:20px;" class="mtwLabel"&gt;Numero&nbsp;na&nbsp;suframa&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:80px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="suframa" maxlength="10" size="10" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;  


                &lt;DIV style="width: 95px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:40px;" class="mtwLabel"&gt;Inst.Bancária&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:30px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="instrucao_banco" maxlength="2" size="2" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                

                &lt;DIV style="width: 95px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:40px;" class="mtwLabel"&gt;Agrupa&nbsp;Notas&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:10px; float: left; margin: 2px;"&gt;
                   &lt;mtw:select name="agrupar_notas" list="confirma" style="border:1px solid black"/&gt;   
                &lt;/DIV&gt;                   
                
                &lt;BR&gt;&lt;BR&gt;&lt;P&gt;
                    
                &lt;DIV style="width: 65px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:40px;" class="mtwLabel"&gt;Cobrador&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:30px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="cobrador" maxlength="3" size="2" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   

                &lt;DIV style="width: 125px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:40px;" class="mtwLabel"&gt;Tipo&nbsp;Contribuinte&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:30px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="tipocontrib" maxlength="2" size="1" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                
                &lt;DIV style="width: 90px; float: left; margin: 2px;"&gt;
                  &lt;LABEL style="width:40px;" class="mtwLabel"&gt;Contribuinte&lt;/LABEL&gt;
                &lt;/DIV&gt;
                &lt;DIV style="width:30px; float: left; margin: 2px;"&gt;
                  &lt;mtw:input name="contribuinte" maxlength="1" size="1" style="border:1px solid black"/&gt;
                &lt;/DIV&gt;                   
                
              &lt;/DIV&gt;
                                          
            
              &lt;BR&gt;&lt;BR&gt;&lt;BR&gt;
            
            &lt;a href="#" onclick="javascript:window.location='&lt;mtw:contextPath /&gt;/ClienteAction.save.mtw';"&gt;&lt;img src="&lt;mtw:contextPath /&gt;/images/cancel.png" alt="Cancel" title="Cancel" /&gt;&lt;/a&gt;
            &lt;a href ="&lt;mtw:contextPath /&gt;/ClienteAction.show.mtw" onclick="formSubmit&#40;&#41;;"&gt;&lt;img src="&lt;mtw:contextPath /&gt;/images/save.png" alt="Salvar" title="Salva dados" /&gt;&lt;/a&gt;

 
         &lt;/mtw:formSkin&gt;     

        &lt;/DIV&gt;
         
    &lt;/body&gt;
&lt;/html&gt;
</pre>
		</div>
]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1919/15068.page#15068</guid>
				<link>http://forum.mentaframework.org/posts/preList/1919/15068.page#15068</link>
				<pubDate><![CDATA[Thu, 3 Apr 2008 09:19:55]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
			<item>
				<title>Re:obtendo dados do input</title>
				<description><![CDATA[ isso o valor do input é sempre null ... não gera nenhum erro, faço isso por diversas outras action sem o menor problema, mas não sei pq neste caso não esta funcionando.]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/preList/1919/15063.page#15063</guid>
				<link>http://forum.mentaframework.org/posts/preList/1919/15063.page#15063</link>
				<pubDate><![CDATA[Wed, 2 Apr 2008 16:23:42]]> GMT</pubDate>
				<author><![CDATA[ Lupos]]></author>
			</item>
	</channel>
</rss>
