You guys retarded or something?


Zsolt Salamon wrote:
> 
> I't works. thx.
> 
> But this is appear another problem:
> 
> If I use this html code:
> 
>      <t:TextField
>        t:id="itm_id"
>        t:translate="stringTrs"
>        t:value="itm.id"
>        />
> 
> In the local properties file I definied thoose properties:
> itm_id-label=ID:
> itm_id-regexp=\\d{8}-\\d{4}-\\d{3}-\\d{2}
> itm_id-regexp-message=The given ID is not correct!
> itm_id-required-message=The ID is missing!
> 
> How can I validate the itm.id value?
> Because I can't use @Validate annotation for the itm.getId() method.
> And as far as I know in the local properties file I have to use the  
> TextField Component id for definy the validation values...
> 
> 
> On Dec 12, 2007, at 18:41, Josh Canfield wrote:
> 
>> Look at your template, you are assigning an id to the TextField  
>> component
>> that has a period in it:
>>
>> <t:TextField
>>       t:id="itm.id"
>>       t:translate="stringTrs"
>>       t:value="itm.id"
>>       />
>> Try making the t:id="itm_id"
>>
>> Josh
>>
>> On Dec 12, 2007 5:29 AM, Zsolt Salamon <[EMAIL PROTECTED]> wrote:
>>
>>> It's ok. But I don't use any Component with period.
>>>
>>> The
>>>
>>> @Persist
>>> private Tezm itm
>>>
>>> is not a Component. It's a simple variable.
>>> Or do I know wrong?
>>>
>>> On Dec 12, 2007, at 14:04, Howard Lewis Ship wrote:
>>>
>>>> Component ids should not have periods in their name.  The fact that
>>>> the parser even allows it is an error.
>>>>
>>>> On Dec 12, 2007 1:02 AM, Salamon Zsolt <[EMAIL PROTECTED]> wrote:
>>>>> Hi I got this error and I don't know why.
>>>>>
>>>>> I use 5.0.5 Tapestry.
>>>>>
>>>>> Intez is a page object.
>>>>> EditForm is a Component object.
>>>>>
>>>>> I include a simplified sources:
>>>>>
>>>>> EditForm.java
>>>>> ===========
>>>>>    private StringTranslator stringTrs;
>>>>>
>>>>>    public StringTranslator getStringTrs() {
>>>>>      if( stringTrs == null ) stringTrs = new StringTranslator();
>>>>>      return stringTrs;
>>>>>    }
>>>>>
>>>>>    @Persist
>>>>>    private int id;
>>>>>
>>>>>    public String getId() {
>>>>>      return id;
>>>>>    }
>>>>>
>>>>>    public void setId( String id ) {
>>>>>      this.id = id;
>>>>>    }
>>>>>
>>>>>    @Persist
>>>>>    private Tezm itm = null;
>>>>>
>>>>>    public Tezm getItm() {
>>>>>      return itm;
>>>>>    }
>>>>>
>>>>>    public void setItm( Tezm itm ) {
>>>>>      this.itm = itm;
>>>>>    }
>>>>>
>>>>>    @SetupRender
>>>>>    void setupEditForm() {
>>>>>          IntezDTO dto = new IntezDTO();
>>>>>          dto.setInezId(id);
>>>>>          itm = ServiceLocator.getIntezService().getIntez("",  
>>>>> dto); //
>>>>> that line is give a Tezm hibernate object, which selected from DB,
>>>>> uses the given id for primary key.
>>>>>    }
>>>>>
>>>>> ==================================
>>>>>
>>>>> Tezm is a hibernate.mapping object. Generated by hbm2java.
>>>>>
>>>>> EditForm.html
>>>>> ==========
>>>>>
>>>>> <table>
>>>>> <tr>
>>>>>    <td>
>>>>>      ${message:id-label}
>>>>>    </td>
>>>>>    <td>
>>>>>      <t:TextField
>>>>>        t:id="itm.id"
>>>>>        t:translate="stringTrs"
>>>>>        t:value="itm.id"
>>>>>        />
>>>>>    </td>
>>>>> </tr>
>>>>> <tr>
>>>>>    <td>
>>>>>      ${message:name-label}
>>>>>    </td>
>>>>>    <td>
>>>>>      <t:TextField
>>>>>        t:id="itm.name"
>>>>>        t:translate="stringTrs"
>>>>>        t:value="itm.name"
>>>>>        />
>>>>>    </td>
>>>>> </tr>
>>>>>
>>>>>
>>>>> So my problem is: When I load in browser that page, that works.  
>>>>> I see
>>>>> the fields with correct values.
>>>>> But when I click any button on the page(any button click causes a
>>>>> post submit) I got this error:
>>>>>
>>>>> ERROR [RequestExceptionHandler] Processing of request failed with
>>>>> uncaught exception: Component Intez:editform does not contain an
>>>>> embedded component with id 'itm'.
>>>>> org.apache.tapestry.ioc.internal.util.TapestryException: Component
>>>>> Intez:editform does not contain an embedded component with id  
>>>>> 'itm'.
>>>>>          at org.apache.tapestry.corelib.components.Form.onAction
>>>>> (Form.java:375)
>>>>>          at
>>>>> org.apache.tapestry.corelib.components.Form.handleComponentEvent
>>>>> (Form.java)
>>>>>          at
>>>>> my.package.web.components.intezmeny.ItmKarbantartEditForm.handleCom 
>>>>> po
>>>>> nen
>>>>> tEvent(ItmKarbantartEditForm.java)
>>>>>          at
>>>>> org.apache.tapestry.internal.structure.ComponentPageElementImpl.han 
>>>>> dl
>>>>> eEv
>>>>> ent(ComponentPageElementImpl.java:893)
>>>>>          at
>>>>> org.apache.tapestry.internal.structure.ComponentPageElementImpl.tri 
>>>>> gg
>>>>> erE
>>>>> vent(ComponentPageElementImpl.java:998)
>>>>>          at
>>>>> org.apache.tapestry.internal.services.ComponentActionRequestHandler 
>>>>> Im
>>>>> pl.
>>>>> handle(ComponentActionRequestHandlerImpl.java:81)
>>>>>          at org.apache.tapestry.internal.services.InternalModule
>>>>> $11.handle(InternalModule.java:541)
>>>>>          at $ComponentActionRequestHandler_116cd810cf4.handle
>>>>> ($ComponentActionRequestHandler_116cd810cf4.java)
>>>>>          at $ComponentActionRequestHandler_116cd810c5b.handle
>>>>> ($ComponentActionRequestHandler_116cd810c5b.java)
>>>>>          at
>>>>> org.apache.tapestry.internal.services.ComponentActionDispatcher.dis 
>>>>> pa
>>>>> tch
>>>>> (ComponentActionDispatcher.java:116)
>>>>>          at $Dispatcher_116cd810c5d.dispatch
>>>>> ($Dispatcher_116cd810c5d.java)
>>>>>          at $Dispatcher_116cd810c50.dispatch
>>>>> ($Dispatcher_116cd810c50.java)
>>>>>          at org.apache.tapestry.services.TapestryModule$12.service
>>>>> (TapestryModule.java:1066)
>>>>>          at my.package.web.services.AppModule$2.service
>>>>> (AppModule.java:74)
>>>>>          at $RequestFilter_116cd810c4f.service
>>>>> ($RequestFilter_116cd810c4f.java)
>>>>>          at $RequestHandler_116cd810c51.service
>>>>> ($RequestHandler_116cd810c51.java)
>>>>>          at my.package.web.services.AppModule$1.service
>>>>> (AppModule.java:36)
>>>>>          at $RequestFilter_116cd810c4e.service
>>>>> ($RequestFilter_116cd810c4e.java)
>>>>>          at $RequestHandler_116cd810c51.service
>>>>> ($RequestHandler_116cd810c51.java)
>>>>>          at
>>>>> org.apache.tapestry.internal.services.LocalizationFilter.service
>>>>> (LocalizationFilter.java:43)
>>>>>          at $RequestHandler_116cd810c51.service
>>>>> ($RequestHandler_116cd810c51.java)
>>>>>          at org.apache.tapestry.services.TapestryModule$2.service
>>>>> (TapestryModule.java:657)
>>>>>          at $RequestHandler_116cd810c51.service
>>>>> ($RequestHandler_116cd810c51.java)
>>>>>          at
>>>>> org.apache.tapestry.internal.services.StaticFilesFilter.service
>>>>> (StaticFilesFilter.java:63)
>>>>>          at $RequestHandler_116cd810c51.service
>>>>> ($RequestHandler_116cd810c51.java)
>>>>>          at
>>>>> org.apache.tapestry.internal.services.CheckForUpdatesFilter 
>>>>> $2.invoke
>>>>> (CheckForUpdatesFilter.java:97)
>>>>>          at
>>>>> org.apache.tapestry.internal.services.CheckForUpdatesFilter 
>>>>> $2.invoke
>>>>> (CheckForUpdatesFilter.java:88)
>>>>>          at
>>>>> org.apache.tapestry.ioc.internal.util.ConcurrentBarrier.withRead
>>>>> (ConcurrentBarrier.java:77)
>>>>>          at
>>>>> org.apache.tapestry.internal.services.CheckForUpdatesFilter.service
>>>>> (CheckForUpdatesFilter.java:110)
>>>>>          at $RequestHandler_116cd810c51.service
>>>>> ($RequestHandler_116cd810c51.java)
>>>>>          at $RequestHandler_116cd810c48.service
>>>>> ($RequestHandler_116cd810c48.java)
>>>>>          at org.apache.tapestry.services.TapestryModule$11.service
>>>>> (TapestryModule.java:1044)
>>>>>          at $HttpServletRequestHandler_116cd810c47.service
>>>>> ($HttpServletRequestHandler_116cd810c47.java)
>>>>>          at org.apache.tapestry.TapestryFilter.doFilter
>>>>> (TapestryFilter.java:135)
>>>>>          at
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>>>>> (ApplicationFilterChain.java:202)
>>>>>          at  
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>>>>> (ApplicationFilterChain.java:173)
>>>>>          at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter
>>>>> (ReplyHeaderFilter.java:96)
>>>>>          at
>>>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
>>>>> (ApplicationFilterChain.java:202)
>>>>>          at  
>>>>> org.apache.catalina.core.ApplicationFilterChain.doFilter
>>>>> (ApplicationFilterChain.java:173)
>>>>>          at org.apache.catalina.core.StandardWrapperValve.invoke
>>>>> (StandardWrapperValve.java:213)
>>>>>          at org.apache.catalina.core.StandardContextValve.invoke
>>>>> (StandardContextValve.java:178)
>>>>>          at
>>>>> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke
>>>>> (SecurityAssociationValve.java:175)
>>>>>          at org.jboss.web.tomcat.security.JaccContextValve.invoke
>>>>> (JaccContextValve.java:74)
>>>>>          at org.apache.catalina.core.StandardHostValve.invoke
>>>>> (StandardHostValve.java:126)
>>>>>          at org.apache.catalina.valves.ErrorReportValve.invoke
>>>>> (ErrorReportValve.java:105)
>>>>>          at  
>>>>> org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke
>>>>> (CachedConnectionValve.java:156)
>>>>>          at org.apache.catalina.core.StandardEngineValve.invoke
>>>>> (StandardEngineValve.java:107)
>>>>>          at org.apache.catalina.connector.CoyoteAdapter.service
>>>>> (CoyoteAdapter.java:148)
>>>>>          at org.apache.coyote.http11.Http11Processor.process
>>>>> (Http11Processor.java:869)
>>>>>          at org.apache.coyote.http11.Http11BaseProtocol
>>>>> $Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:
>>>>> 664)
>>>>>          at  
>>>>> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
>>>>> (PoolTcpEndpoint.java:527)
>>>>>          at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run
>>>>> (MasterSlaveWorkerThread.java:112)
>>>>>          at java.lang.Thread.run(Thread.java:613)
>>>>> Caused by: org.apache.tapestry.ioc.internal.util.TapestryException:
>>>>> Component Intez:editform does not contain an embedded component  
>>>>> with
>>>>> id 'itm'. [at context:WEB-INF/Intez.html, line 7, column 78]
>>>>>          at
>>>>> org.apache.tapestry.internal.structure.ComponentPageElementImpl.get 
>>>>> Em
>>>>> bed
>>>>> dedElement(ComponentPageElementImpl.java:831)
>>>>>          at
>>>>> org.apache.tapestry.internal.structure.PageImpl.getComponentElement 
>>>>> By
>>>>> Nes
>>>>> tedId(PageImpl.java:83)
>>>>>          at
>>>>> org.apache.tapestry.internal.services.ComponentSourceImpl.getCompon 
>>>>> en
>>>>> t
>>>>> (ComponentSourceImpl.java:46)
>>>>>          at $ComponentSource_116cd810c77.getComponent
>>>>> ($ComponentSource_116cd810c77.java)
>>>>>          at org.apache.tapestry.corelib.components.Form.onAction
>>>>> (Form.java:362)
>>>>>          ... 52 more
>>>>>
>>>>> Any ideas?
>>>>>
>>>>> ------------------------------------------------------------------- 
>>>>> --
>>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Howard M. Lewis Ship
>>>> TWD Consulting, Inc.
>>>>
>>>> Creator Apache Tapestry and Apache HiveMind
>>>>
>>>> -------------------------------------------------------------------- 
>>>> -
>>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>>> For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>
>>
>> -- 
>> --
>> TheDailyTube.com. Sign up and get the best new videos on the internet
>> delivered fresh to your inbox.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Tapestry-position-%28Contract-or-Full-Time%29-%40-Miami%2CUSA-tp14283621p14322248.html
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to