Hi,

this is the workaround facelet code:

   <trh:rowLayout>

     <input style="#{cellStyleMessageClass}" value="#{cellValue}"
     id="#{cellId}" type="text" size="#{cellColumns}"
     maxlength="#{cellMaxLength}"  onfocus="storeFocus(this);
     this.style.backgroundColor='#92df55';"
     onblur="this.style.backgroundColor=null;"
     onchange="document.getElementById('#{cellId}_select').value=this.value"
 />

    <!--  Name -->

    <tr:spacer height="1" width="#{cellSpaceBeforeName}"/>
    <tr:outputLabel showRequired="false"  for="#{cellId}Name"
    value="#{cellNameLabel}"/>

      <tr:selectOneChoice value="#{cellValue}" id="#{cellId}_select"
       size="#{cellMaxLengthName}"
       onchange="document.getElementById('#{cellId}').value=this.value">
       <ui:insert/>
      </tr:selectOneChoice>
   </trh:rowLayout>

If you use tr:input instead of the above XHTML input I got the problem with
the 'dead' form.

Best,
Wolfgang.


-----"Martin Marinschek" <[EMAIL PROTECTED]> schrieb: -----

An: "MyFaces Discussion" <[email protected]>
Von: "Martin Marinschek" <[EMAIL PROTECTED]>
Datum: 18.01.2008 02:04PM
Thema: Re: Re: Re: [Trinidad] tr:form/subform issue: form fields not passed

very strange - both fields are trinidad-fields?

regards,

Martin

On 1/17/08, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> FYI
>
> ..the problem was a side effect of an input component actually consisting
> of two input media, one being an input field
> and the other a select field, and both pointing at the same property,
which
> leads to a deactivation of the entire submit
> with no hints whatsoever :(
>
> [EMAIL PROTECTED] schrieb: -----
>
> An: "MyFaces Discussion" <[email protected]>
> Von: [EMAIL PROTECTED]
> Datum: 17.01.2008 09:48AM
> Thema: Re: Re: [Trinidad] tr:form/subform issue: form fields not passed
>
>
>
>
>
> Hi,
>
>  it is evaluated as false:
>
> <ui:param name="readOnlyTest" value="false" />
>
> I updated it now to 1.2.5 but no change, the problem prevails.
> But it seems to me there must be something simple responsible
> for the problem..
>
> In the mean time I eliminated showDetailItem and facelets
> for testing (except for the single input components made a facelets).
>
> So the possibilities for the problem are reduced to either the
>
> To sum it up:
>
> I have a form/subform structure as follows:
> <tr:form>
> <tr:subform>
> </tr:subform>
> <str:ubform>
> </tr:subform>
> <tr:subform>
> </tr:subform>
> <tr:commandButton id="myButton" action="#{orderController.saveData}"
> </tr:form>
>
> When I am in the saveData method I check thru logging
> that the new form field values that have been entered.
> have not been set.
>
> If I apply
> <tr:form commandButton="myButton">
> <tr:subform default="true">
> </tr:subform>
> <tr:subform default="true">
> </tr:subform>
> <tr:subform default="true">
> </tr:subform>
> <tr:commandButton id="myButton" action="#{orderController.saveData}"
> </tr:form>
>
> But then the button itself is dead and nothing happens.
>
> So which approach is the correct one?
>
> But maybe there is another problem with the page itself,
> which I have yet to come across.
>
> Thanks
> Wolfgang.
>
>
>
>
>
> PTA Programmier-Technische Arbeiten GmbH
> Seckenheimer Str. 65-67, 68165 Mannheim
> Amtsgericht Mannheim, HRB 1139
> USt-IdNr.: DE 143 839 368
> Geschäftsführer:
> Dipl.-Ing. Peter Fischer
> Dr. Harald W. Busch
> Dipl.-Kfm. Knut Fischer
>
> **********************************************************************
> http://www.pta.de
> Mit 1539 Erfahrungsberichten aus 39 Jahren erfolgreicher Projektarbeit!
> **********************************************************************
>
> PTA Programmier-Technische Arbeiten GmbH
> Seckenheimer Str. 65-67, 68165 Mannheim
> Amtsgericht Mannheim, HRB 1139
> USt-IdNr.: DE 143 839 368
> Geschäftsführer:
> Dipl.-Ing. Peter Fischer
> Dr. Harald W. Busch
> Dipl.-Kfm. Knut Fischer
>
> **********************************************************************
> http://www.pta.de
> Mit 1539 Erfahrungsberichten aus 39 Jahren erfolgreicher Projektarbeit!
> **********************************************************************


--

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces


PTA Programmier-Technische Arbeiten GmbH
Seckenheimer Str. 65-67, 68165 Mannheim
Amtsgericht Mannheim, HRB 1139
USt-IdNr.: DE 143 839 368
Geschäftsführer:
Dipl.-Ing. Peter Fischer
Dr. Harald W. Busch
Dipl.-Kfm. Knut Fischer

**********************************************************************
http://www.pta.de
Mit 1542 Erfahrungsberichten aus 39 Jahren erfolgreicher Projektarbeit!
**********************************************************************

Reply via email to