Xpages - partial update

Hi,

I have a panel with a simple editbox and a button. I set the edibox’s value and then do a partial update (for the panel) with the button, but cannot get the value of the editbox with getComponent(“editbox”).getValue()/getSubmittedValue()

(the value of the editbox is set in the AJAX post too).

It works on full update. What could be the problem?

Thanks,

Tibor

Subject: No data validation ?

Hi,

can it be that you have checked “No data validation” for your event ? If yes then this might help you:

http://www-10.lotus.com/ldd/ddwiki.nsf/dx/XPagesNoDataValidation.htm

Hynek

Subject: “no data validation” is not checked

Subject: Looks ok and working as expected, try…

And try that doc too - http://www-10.lotus.com/ldd/ddwiki.nsf/dx/XPagesNoDataValidation.htm

<xp:label id=“label2” style=“color:rgb(0,64,128);font-weight:bold”>xp:this.value</xp:this.value></xp:label>

<xp:panel id="panel4">

	<xp:label id="label1" style="color:rgb(0,128,192);font-weight:bold"><xp:this.value><![CDATA[#{javascript:"This value will only update on a partial refresh - "+@UpperCase(@Left(@Unique(),3))}]]></xp:this.value></xp:label>

	<xp:br></xp:br>

	<xp:inputText id="inputText1" value="#{requestScope.val01}"></xp:inputText>

	<xp:br></xp:br>

	<xp:text escape="true" id="computedField1"><xp:this.value><![CDATA[#{javascript:var rs = requestScope.val01;

"Value binding on editbox = "+rs}]]></xp:this.value></xp:text>

	<xp:br></xp:br>

	<xp:text escape="true" id="computedField2" style="color:rgb(64,0,128);font-weight:bold"><xp:this.value><![CDATA[#{javascript:var v = getComponent("inputText1").getValue();

"getValue() from inputText1 = "+v}]]></xp:this.value></xp:text>

	<xp:br></xp:br>

	<xp:text escape="true" id="computedField3" style="color:rgb(128,0,255);font-weight:bold"><xp:this.value><![CDATA[#{javascript:var sv = getComponent("inputText1").getSubmittedValue();

"getSubmittedValue() from inputText1 = "+sv}]]></xp:this.value></xp:text>

	<xp:br></xp:br>

	<xp:br></xp:br>

	<xp:button value="Submit - Partial Update" id="button1"><xp:eventHandler event="onclick" submit="true" refreshMode="partial" immediate="false" save="true" refreshId="panel4"></xp:eventHandler></xp:button> <xp:button value="Submit - Full Update" id="button2"><xp:eventHandler event="onclick" submit="true" refreshMode="complete" immediate="false" save="true"></xp:eventHandler></xp:button>

xp:br</xp:br><xp:button value=“Submit - Partial Update | With No Data Validation” id=“button3”><xp:eventHandler event=“onclick” submit=“true” refreshMode=“partial” immediate=“true” save=“true” refreshId=“panel4”></xp:eventHandler></xp:button> <xp:button value=“Submit - Full Update | With No Data Validation” id=“button4”><xp:eventHandler event=“onclick” submit=“true” refreshMode=“complete” immediate=“true” save=“true”></xp:eventHandler></xp:button>

xp:br</xp:br></xp:panel>

Subject: sorted out

Hi Paul,

Thanks for the response, yeah it’s working as expected. A custom widget caused the problems…

Tibor