Thx, that solved my problem!!

Regards,
Andy

-----Ursprungliche Nachricht-----
Von: Jana Parvanova [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 3. Februar 2006 09:54
An: MyFaces Discussion
Betreff: Re: How to update fields from ValueChangeEvent


How do you set fields values?
You should use setSubmiittedValue instead of setValue when 'immediate' is 
true... (If I understood properly your problem.)

----- Original Message ----- 
From: <[EMAIL PROTECTED]>
To: <users@myfaces.apache.org>
Sent: Friday, February 03, 2006 10:30 AM
Subject: AW: How to update fields from ValueChangeEvent


No one an idea?
I don't unterstand, why the fields stay empty when I use value binding 
expressions. It seems to be a display problem, because in the backing bean 
the value is set correctly...

Is there any other chance to display the data for the fields?

I would be very grateful, if you could help me!!!

THX, regards
Andy

-----Ursprьngliche Nachricht-----
Von: Mitter Andreas, ISX
Gesendet: Donnerstag, 2. Februar 2006 12:42
An: users@myfaces.apache.org
Betreff: How to update fields from ValueChangeEvent



Hi!
This question seems to be very stupid, but I can't achieve to update 
inputText Components within a ValueChangeEvent when this inputTextComponents 
have a binding attribute.

If I remove the binding attribute, then the fields are updated...
In the ValueChangeMethod I get records from Database depending on the Input 
of the first inputtext component and write the records into the other 
inputtext COmponents with their setter Methods.

Then the page is loaded new but the inputtextfields arenot updated
What can I do to achieve this?

Here is my JSF Page:
<t:htmlTag value="td" rendered="#{showTags.showLfnr}">
        <h:inputText binding="#{beziehungsDto.ITlfnr}"  id="lfnr"
                value="#{beziehungsDto.lfnr}" styleClass="mustfield" 
required="true"
                size="35" rendered="#{showTags.showLfnr}" immediate="true"
                valueChangeListener="#{querySelectHelper.selectSamData}"
                onchange="submit()">
                <f:validateLength maximum="35"></f:validateLength>
        </h:inputText>
</t:htmlTag>

In this second field some data should be written. If I remove the binding 
attribute, it works, if I leave it, the field isn't updated...
<t:htmlTag value="td">
        <h:inputText binding="#{beziehungsDto.ITpartnername}" 
id="partnernameneu" value="#{beziehungsDto.namepartner}"
        styleClass="mustfield" required="true" size="35">
                <f:validateLength maximum="35"></f:validateLength>
        </h:inputText>
</t:htmlTag>


Regards,
Andy


______________________________________________________________________ This 
email and any files transmitted with it are confidential and intended solely 
for the use of the individual or entity to whom they are addressed. If you 
have received this email in error please notify your system manager. This 
footnote also confirms that this email message has been swept for the 
presence of computer viruses. 
______________________________________________________________________



______________________________________________________________________

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
______________________________________________________________________


______________________________________________________________________

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
______________________________________________________________________

Reply via email to