Ok.

I have a table been edited by a grid. The table has about 30 lines, and the grid shows only 15 lines:

 

<dataset name=”plcDataSet”>

<laszlodata>

<itensPlc>

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="BLABLABLABLABLA" id="1" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Dionatan de Almeida" id="2" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Fulano" id="3" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Beltrano" id="4" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Ensino medio" id="5" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Ensino superior" id="6" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Ensino fundamental" id="7" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Mestrado" id="8" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Doutorado" id="9" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Pós Doutorado" id="10" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="TEste 123" id="11" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Testando 1" id="12" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Lorem ipsum sum" id="13" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Bla ble bi" id="14 />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Ciclano" id="15" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Joao da Silva" id="16" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Teste 12" id="17" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Nada a declarar" id="18" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="A b c d e" id="19" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Lorem ipsum sumn lore" id="20" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Nome a editar" id="21" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Tipo escolaridade" id="22" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Nome nenhum" id="23" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Nome algum" id="24" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Filhinha" id="25" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Blableblibloblu" id="26" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Batatinha qdo nasce" id="27" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="123 de oliveira 4" id="28" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="Muletando" id="29" />

  <com.empresa.app.vo.tabular.TipoEscolaridadeVO descricao="trigesimo registro" id="30" />

</itensPlc>

</laszlodata>

</dataset>

<datapointer name="itensPlcPointer"     xpath="plcDataSet:/laszlodata/itensPlc/" />

<form>

                <submit name=”formSender” data="">

<grid datapth=”${itensPlcPointer.xpath}” shownitems=”15”>

                                <gridcolumn text=”ID”>

                                               <edittext datapath=”@id”>

                                </gridcolumn>

                                <gridcolumn text=”Name”>

                                               <edittext datapath=”@descricao”>

                                </gridcolumn>

</grid>

<button isdefault=”true” >

</form>

 

Problem 1:

            If I change the value of edittext at line 1 from “BLABLABLABLABLA” to “TESTING EDITION”, scroll down to the last line and scrolls back to top. The edittext´s value

            came back to “BLABLABLABLABLA”.

 

Problem 2:

Debugging submit component I saw that only visible lines in grid is used to build dataset´s queryString. So, if I change the value of the first edittext and scrolls down until it is hidden, the first edittext´s value isn´t sended.

 

Sorry my English.

Thanks in advance.

-----------------------------------

Dionatan

-----Mensagem original-----
De: Jim Grandy [mailto:[EMAIL PROTECTED]
Enviada em: terça-feira, 17 de janeiro de 2006 15:32
Para:
Dionatan de Almeida
Cc:
[email protected]
Assunto: Re: [Laszlo-user] Critical problem submitng data from grid

 

Hi,

 

Without code showing what you are doing, it is hard to diagnose the problem. Would you mind posting an example of the two problems you are seeing?

 

thanks,

 

jim

 

On Jan 13, 2006, at 1:31 PM, Dionatan de Almeida wrote:



I have a grid inside a form tag. The grid is filled by a dataset with 80 lines, but my grid is configure do show only 15 lines.

Two curious behaviors are happening:

1)       When I change the edittext´s data at line 1 and scroll to line 25 for example, and scoll back to line 1, the edittext´s value was reset to dataset´s orignal value. (I put this.datapath.updateData at edittext´s onblur to solve this).

2)       Only 15 lines (the grid shownitems) is sent in form submission. This behavior invalidate tottaly my laszlo implementation and enforcements to “sell” the tecnology at my company.

 

How can i do to send all grid´s data at form submit?!

Dionatan de Almeida
Sun Certified Java Programmer
Sun Certified Web Component Developer

Powerlogic Consultoria e Sistemas S.A.
Desenvolvimento Java
Fone: (031)3286-1691 Celular: (031) 9784-4248
e-mail: [EMAIL PROTECTED]
Visite o site: http://www.powerlogic.com.br

 

_______________________________________________

Laszlo-user mailing list

 

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to