You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Moritz Gmelin <mo...@gmx.de> on 2008/02/19 10:12:07 UTC

t5components InPlaceEditor for GridData

Hi (Sven),

I just tried to use your InPlaceEditorComponent for data in a grid.  
But since the cells are generated automatically, they all get the same  
id (inplaceeditor). This confuses the javascript that cannot  
differentiate between the cells it should enhance and will put 20 text  
fields and submit & cancel buttons inside the first span it finds.
Is there some known workaround to this? Any other way to use  
InPlaceEditor inside a Grid?

Thanks

Moritz 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5components InPlaceEditor for GridData

Posted by Davor Hrg <hr...@gmail.com>.
to get you started I can give you a hint, ... no time to try it out my self :)

make your own simple component to wrap value

look at org.apache.tapestry.corelib.base.AbstractField

it uses
    @Environmental
    private PageRenderSupport _pageRenderSupport;

to generate unique id
    final void setup()
    {
        // By default, use the component id as the (base) client id.
If the clientid
        // parameter is bound, then that is the value to use.

        String id = _clientId;

        // Often, these controlName and _clientId will end up as the
same value. There are many
        // exceptions, including a form that renders inside a loop, or
a form inside a component
        // that is used multiple times.

        _assignedClientId = _pageRenderSupport.allocateClientId(id);
.....


On Feb 19, 2008 10:12 AM, Moritz Gmelin <mo...@gmx.de> wrote:
> Hi (Sven),
>
> I just tried to use your InPlaceEditorComponent for data in a grid.
> But since the cells are generated automatically, they all get the same
> id (inplaceeditor). This confuses the javascript that cannot
> differentiate between the cells it should enhance and will put 20 text
> fields and submit & cancel buttons inside the first span it finds.
> Is there some known workaround to this? Any other way to use
> InPlaceEditor inside a Grid?
>
> Thanks
>
> Moritz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5components InPlaceEditor for GridData

Posted by Sven Homburg <ho...@googlemail.com>.
snapshots now availble
0.5.11-SNAPSHOT based on tapestry daily checked out trunk

2008/2/20, Sven Homburg <ho...@googlemail.com>:
>
> please add an issue in
> http://code.google.com/p/tapestry5-components/issues/list
>
> 2008/2/20, Andreas Pursian <dg...@gmx.net>:
> >
> > -----BEGIN PGP SIGNED MESSAGE-----
> > Hash: SHA1
> >
> > Hi Sven (all),
> >
> > at first, i would like to thank you and the other people behind
> > t5components for your great work! I guess my issue is quite similar to
> > the one mentioned by Moritz. I use the fieldset component inside of a
> > loop with the side effect that every fieldset gets the same id
> > (fieldset). Thats why the nice fade in/out functionality is broken. Is
> > there an way to solve this?
> >
> > Thanks
> >
> > Andreas
> >
> >
> > Sven Homburg wrote:
> > | FYI
> > |
> > | http://code.google.com/p/tapestry5-components/issues/detail?id=20
> > |
> > | 2008/2/19, Moritz Gmelin <mo...@gmx.de>:
> > |> Hi (Sven),
> > |>
> > |> I just tried to use your InPlaceEditorComponent for data in a grid.
> > |> But since the cells are generated automatically, they all get the
> > same
> > |> id (inplaceeditor). This confuses the javascript that cannot
> > |> differentiate between the cells it should enhance and will put 20
> > text
> > |> fields and submit & cancel buttons inside the first span it finds.
> > |> Is there some known workaround to this? Any other way to use
> > |> InPlaceEditor inside a Grid?
> > |>
> > |> Thanks
> > |>
> > |> Moritz
> > |>
> > |> ---------------------------------------------------------------------
> > |> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > |> For additional commands, e-mail: users-help@tapestry.apache.org
> > |>
> > |>
> > |
> > |
> > -----BEGIN PGP SIGNATURE-----
> > Version: GnuPG v1.4.7 (Darwin)
> > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
> >
> > iD8DBQFHu4qxM14O/Esx/74RAiEyAJ96bNpmJCxeToAdccSbbHBvB1EpFgCgryTB
> > 0kN9a0yQqgv4udvA1HCe1+A=
> > =0kii
> > -----END PGP SIGNATURE-----
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> with regards
> Sven Homburg




-- 
with regards
Sven Homburg

Re: t5components InPlaceEditor for GridData

Posted by Sven Homburg <ho...@googlemail.com>.
please add an issue in
http://code.google.com/p/tapestry5-components/issues/list

2008/2/20, Andreas Pursian <dg...@gmx.net>:
>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi Sven (all),
>
> at first, i would like to thank you and the other people behind
> t5components for your great work! I guess my issue is quite similar to
> the one mentioned by Moritz. I use the fieldset component inside of a
> loop with the side effect that every fieldset gets the same id
> (fieldset). Thats why the nice fade in/out functionality is broken. Is
> there an way to solve this?
>
> Thanks
>
> Andreas
>
>
> Sven Homburg wrote:
> | FYI
> |
> | http://code.google.com/p/tapestry5-components/issues/detail?id=20
> |
> | 2008/2/19, Moritz Gmelin <mo...@gmx.de>:
> |> Hi (Sven),
> |>
> |> I just tried to use your InPlaceEditorComponent for data in a grid.
> |> But since the cells are generated automatically, they all get the same
> |> id (inplaceeditor). This confuses the javascript that cannot
> |> differentiate between the cells it should enhance and will put 20 text
> |> fields and submit & cancel buttons inside the first span it finds.
> |> Is there some known workaround to this? Any other way to use
> |> InPlaceEditor inside a Grid?
> |>
> |> Thanks
> |>
> |> Moritz
> |>
> |> ---------------------------------------------------------------------
> |> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> |> For additional commands, e-mail: users-help@tapestry.apache.org
> |>
> |>
> |
> |
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.7 (Darwin)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHu4qxM14O/Esx/74RAiEyAJ96bNpmJCxeToAdccSbbHBvB1EpFgCgryTB
> 0kN9a0yQqgv4udvA1HCe1+A=
> =0kii
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
with regards
Sven Homburg

Re: t5components InPlaceEditor for GridData

Posted by Andreas Pursian <dg...@gmx.net>.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Sven (all),

at first, i would like to thank you and the other people behind
t5components for your great work! I guess my issue is quite similar to
the one mentioned by Moritz. I use the fieldset component inside of a
loop with the side effect that every fieldset gets the same id
(fieldset). Thats why the nice fade in/out functionality is broken. Is
there an way to solve this?

Thanks

Andreas


Sven Homburg wrote:
| FYI
|
| http://code.google.com/p/tapestry5-components/issues/detail?id=20
|
| 2008/2/19, Moritz Gmelin <mo...@gmx.de>:
|> Hi (Sven),
|>
|> I just tried to use your InPlaceEditorComponent for data in a grid.
|> But since the cells are generated automatically, they all get the same
|> id (inplaceeditor). This confuses the javascript that cannot
|> differentiate between the cells it should enhance and will put 20 text
|> fields and submit & cancel buttons inside the first span it finds.
|> Is there some known workaround to this? Any other way to use
|> InPlaceEditor inside a Grid?
|>
|> Thanks
|>
|> Moritz
|>
|> ---------------------------------------------------------------------
|> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
|> For additional commands, e-mail: users-help@tapestry.apache.org
|>
|>
|
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHu4qxM14O/Esx/74RAiEyAJ96bNpmJCxeToAdccSbbHBvB1EpFgCgryTB
0kN9a0yQqgv4udvA1HCe1+A=
=0kii
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: t5components InPlaceEditor for GridData

Posted by Sven Homburg <ho...@googlemail.com>.
FYI

http://code.google.com/p/tapestry5-components/issues/detail?id=20

2008/2/19, Moritz Gmelin <mo...@gmx.de>:
>
> Hi (Sven),
>
> I just tried to use your InPlaceEditorComponent for data in a grid.
> But since the cells are generated automatically, they all get the same
> id (inplaceeditor). This confuses the javascript that cannot
> differentiate between the cells it should enhance and will put 20 text
> fields and submit & cancel buttons inside the first span it finds.
> Is there some known workaround to this? Any other way to use
> InPlaceEditor inside a Grid?
>
> Thanks
>
> Moritz
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
with regards
Sven Homburg