Re: Reset dataScroller

2007-05-31 Thread Mike Kienenberger

Are you asking how to resubmit the form when the menu changes?

If so, see here:

http://wiki.apache.org/myfaces/SubmitPageOnValueChange

As it states at the top, the simplest way to do this is with a
submitOnEvent component, typically inside of a subForm component.
Both of these components are currently in the sandbox, but are
production-quality.  (No one's gotten around yet to promoting them to
Tomahawk).












On 5/31/07, Michael Böckling <[EMAIL PROTECTED]> wrote:

Wow, it seems you are doing the exact same thing as me, even my bean has the
same name! :D
I was afraid that this would have to be the solution... Oh boy.


I have a second issue, however, thats a bit related to this. To avoid having
to reset the UI, I do a full page reload, e.g. when I change the displayed
rows per page of my dataTable. That way, my dataScrollers stay in sync as
well.

I have a h:selectOneMenu to change this number, and I would like to trigger
an auto-submit when it changes its value. For now, it works only using a
commandButton, but that just look right. I tried to register the
oamSubmitForm() with  the 'onchange' event on the h:selectOneMenu, but that
does not work, for whatever reason. I guess its because h:selectOneMenu
isn't a actionSource.

Is there a way to do this properly? This seems to be one of the easiest
things, yet I can't do it.


And thanks for your help so far, Mike! That was great!



Michael


> -Ursprüngliche Nachricht-
> Von: Mike Kienenberger [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 31. Mai 2007 20:18
> An: MyFaces Discussion
> Betreff: Re: Reset dataScroller
>
>
> See here for ideas:
>
> https://issues.apache.org/jira/browse/TOMAHAWK-548
>
> No one's been motivated enough yet to submit patches.
>
> On 5/31/07, Michael Böckling <[EMAIL PROTECTED]> wrote:
> > Hi!
> >
> > I have a problem with t:dataScroller, it does not reset
> itself when the
> > underlying data model changes. When I click on the "first" button,
> > everything is well again. Is there a way to do this
> programmatically? In
> > JavaScript or in a backing bean?
> >
> > Thanks for any help!
> >
> >
> > Michael
> >
> >
> > --
> > Michael Böckling
> > Java Engineer
> > dmc digital media center GmbH
> > Rommelstraße 11
> > 70376 Stuttgart (Germany)
> > Telefon: +49 711 601747-0
> > Telefax: +49 711 601747-141
> > E-Mail: [EMAIL PROTECTED]
> > Internet: www.dmc.de
> >
> > Handelsregister: AG Stuttgart HRB 18974
> > Geschäftsführer: Andreas Magg, Daniel Rebhorn, Andreas Schwend
> >
> > -
> > Besseres E-Business.
> > dmc ist die kreative Vernetzung von Agentur, Systemhaus und
> Service. Seit
> > über 10 Jahren entwickeln und realisieren wir zukunftweisende und
> > erfolgreiche E-Business-Lösungen. Zu unseren langjährigen
> Kunden zählen
> > neckermann.de, Kodak und Telekom Training.
> >
> > dmc auf Platz 8 im aktuellen New Media Service Ranking.
> > Als inhabergeführte und netzwerkunabhängige Agentur gehören
> wir mit einem
> > Umsatz von 13,50 Mio. Euro zu den Top 10 der
> erfolgreichsten New Media
> > Dienstleister in Deutschland.
> >
>



AW: Reset dataScroller

2007-05-31 Thread Michael Böckling
Wow, it seems you are doing the exact same thing as me, even my bean has the
same name! :D
I was afraid that this would have to be the solution... Oh boy.


I have a second issue, however, thats a bit related to this. To avoid having
to reset the UI, I do a full page reload, e.g. when I change the displayed
rows per page of my dataTable. That way, my dataScrollers stay in sync as
well.

I have a h:selectOneMenu to change this number, and I would like to trigger
an auto-submit when it changes its value. For now, it works only using a
commandButton, but that just look right. I tried to register the
oamSubmitForm() with  the 'onchange' event on the h:selectOneMenu, but that
does not work, for whatever reason. I guess its because h:selectOneMenu
isn't a actionSource. 

Is there a way to do this properly? This seems to be one of the easiest
things, yet I can't do it.


And thanks for your help so far, Mike! That was great!



Michael


> -Ursprüngliche Nachricht-
> Von: Mike Kienenberger [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 31. Mai 2007 20:18
> An: MyFaces Discussion
> Betreff: Re: Reset dataScroller
> 
> 
> See here for ideas:
> 
> https://issues.apache.org/jira/browse/TOMAHAWK-548
> 
> No one's been motivated enough yet to submit patches.
> 
> On 5/31/07, Michael Böckling <[EMAIL PROTECTED]> wrote:
> > Hi!
> >
> > I have a problem with t:dataScroller, it does not reset 
> itself when the
> > underlying data model changes. When I click on the "first" button,
> > everything is well again. Is there a way to do this 
> programmatically? In
> > JavaScript or in a backing bean?
> >
> > Thanks for any help!
> >
> >
> > Michael
> >
> >
> > --
> > Michael Böckling
> > Java Engineer
> > dmc digital media center GmbH
> > Rommelstraße 11
> > 70376 Stuttgart (Germany)
> > Telefon: +49 711 601747-0
> > Telefax: +49 711 601747-141
> > E-Mail: [EMAIL PROTECTED]
> > Internet: www.dmc.de
> >
> > Handelsregister: AG Stuttgart HRB 18974
> > Geschäftsführer: Andreas Magg, Daniel Rebhorn, Andreas Schwend
> >
> > -
> > Besseres E-Business.
> > dmc ist die kreative Vernetzung von Agentur, Systemhaus und 
> Service. Seit
> > über 10 Jahren entwickeln und realisieren wir zukunftweisende und
> > erfolgreiche E-Business-Lösungen. Zu unseren langjährigen 
> Kunden zählen
> > neckermann.de, Kodak und Telekom Training.
> >
> > dmc auf Platz 8 im aktuellen New Media Service Ranking.
> > Als inhabergeführte und netzwerkunabhängige Agentur gehören 
> wir mit einem
> > Umsatz von 13,50 Mio. Euro zu den Top 10 der 
> erfolgreichsten New Media
> > Dienstleister in Deutschland.
> >
> 


Re: Reset dataScroller

2007-05-31 Thread Mike Kienenberger

See here for ideas:

https://issues.apache.org/jira/browse/TOMAHAWK-548

No one's been motivated enough yet to submit patches.

On 5/31/07, Michael Böckling <[EMAIL PROTECTED]> wrote:

Hi!

I have a problem with t:dataScroller, it does not reset itself when the
underlying data model changes. When I click on the "first" button,
everything is well again. Is there a way to do this programmatically? In
JavaScript or in a backing bean?

Thanks for any help!


Michael


--
Michael Böckling
Java Engineer
dmc digital media center GmbH
Rommelstraße 11
70376 Stuttgart (Germany)
Telefon: +49 711 601747-0
Telefax: +49 711 601747-141
E-Mail: [EMAIL PROTECTED]
Internet: www.dmc.de

Handelsregister: AG Stuttgart HRB 18974
Geschäftsführer: Andreas Magg, Daniel Rebhorn, Andreas Schwend

-
Besseres E-Business.
dmc ist die kreative Vernetzung von Agentur, Systemhaus und Service. Seit
über 10 Jahren entwickeln und realisieren wir zukunftweisende und
erfolgreiche E-Business-Lösungen. Zu unseren langjährigen Kunden zählen
neckermann.de, Kodak und Telekom Training.

dmc auf Platz 8 im aktuellen New Media Service Ranking.
Als inhabergeführte und netzwerkunabhängige Agentur gehören wir mit einem
Umsatz von 13,50 Mio. Euro zu den Top 10 der erfolgreichsten New Media
Dienstleister in Deutschland.



Reset dataScroller

2007-05-31 Thread Michael Böckling
Hi!

I have a problem with t:dataScroller, it does not reset itself when the
underlying data model changes. When I click on the "first" button,
everything is well again. Is there a way to do this programmatically? In
JavaScript or in a backing bean?

Thanks for any help!


Michael


-- 
Michael Böckling
Java Engineer
dmc digital media center GmbH 
Rommelstraße 11 
70376 Stuttgart (Germany) 
Telefon: +49 711 601747-0
Telefax: +49 711 601747-141 
E-Mail: [EMAIL PROTECTED] 
Internet: www.dmc.de 

Handelsregister: AG Stuttgart HRB 18974
Geschäftsführer: Andreas Magg, Daniel Rebhorn, Andreas Schwend

-
Besseres E-Business.
dmc ist die kreative Vernetzung von Agentur, Systemhaus und Service. Seit
über 10 Jahren entwickeln und realisieren wir zukunftweisende und
erfolgreiche E-Business-Lösungen. Zu unseren langjährigen Kunden zählen
neckermann.de, Kodak und Telekom Training.

dmc auf Platz 8 im aktuellen New Media Service Ranking.
Als inhabergeführte und netzwerkunabhängige Agentur gehören wir mit einem
Umsatz von 13,50 Mio. Euro zu den Top 10 der erfolgreichsten New Media
Dienstleister in Deutschland.


Reset datascroller

2007-05-04 Thread Angel Miralles Arevalo
Hi everyone, I have a little problem while trying to integrate filtering and 
paging a datatable. I'm paging from hibernate (working with large tables), when 
I filter only get results if they were display on the actual paging elements.

Anybody can help me? Thanks a lot



__ 
LLama Gratis a cualquier PC del Mundo. 
Llamadas a fijos y móviles desde 1 céntimo por minuto. 
http://es.voice.yahoo.com

how to reset DataScroller

2006-11-29 Thread Renzo Tomaselli




Hi, I'm using a Tomahawk DataScroller inside a
DataTable. A separate button allows for changing current rows-per-page
parameter. When this happens, I would like to reset the overall table
to the very first row.
How can I reset the DataScroller internal position ? I use a custom
paged DataModel, but calling setRowIndex(0) from inside the apply
action is not enough, since I can see the DataScroller resetting this
value to whatever it was before that action. I can't see any proper
setter on HtmlsDataScroller component as well.
Thanks - Renzo






Best way to reset DataScroller

2005-10-21 Thread Ryan Wynn

Is there an API for setting the UIDataScroller
to a certain page?